Skip to content

Commit 1ff7ff6

Browse files
committed
fixed broken test related to populating a non-abstract base class
1 parent 9b0e02b commit 1ff7ff6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/MongoDB/Serialization/Builders/PolymorphicClassMapBuilder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public object BuildObject()
4141
{
4242
//we'll assume that this is the root class in the hierarchy.
4343
_concreteEntityBuilder = new ConcreteClassMapBuilder(_classMap);
44+
foreach (var pair in _properties)
45+
_concreteEntityBuilder.AddProperty(pair.Key, pair.Value);
4446
}
4547

4648
return _concreteEntityBuilder.BuildObject();

0 commit comments

Comments
 (0)