Skip to content

Commit

Permalink
fixed a bug related to discriminators and extended properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
craiggwilson committed Jun 20, 2010
1 parent f911cc7 commit bb7b492
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -31,7 +31,7 @@ public void AddProperty(string name, object value)
var memberMap = _classMap.GetMemberMapFromAlias(name);
if (memberMap != null)
memberMap.SetValue(_instance, value);
else if (_extendedProperties != null)
else if ((!_classMap.HasDiscriminator || _classMap.DiscriminatorAlias != name) && _extendedProperties != null)
_extendedProperties.Add(name, value);
}

Expand Down

0 comments on commit bb7b492

Please sign in to comment.