Register FlowScope class map in MongoDB feature to handle serialization and ignore extra elements. (#6766)
This commit is contained in:
parent
99370502dc
commit
b8a04b11d1
|
|
@ -78,6 +78,12 @@ public class MongoDbFeature(IModule module) : FeatureBase(module)
|
|||
map.SetIgnoreExtraElements(true); // Needed for missing ID property
|
||||
map.MapProperty(x => x.Key); // Needed for non-setter property
|
||||
});
|
||||
|
||||
BsonClassMap.TryRegisterClassMap<FlowScope>(map =>
|
||||
{
|
||||
map.AutoMap();
|
||||
map.SetIgnoreExtraElements(true);
|
||||
});
|
||||
}
|
||||
|
||||
private static void TryRegisterSerializerOrSkipWhenExist(Type type, IBsonSerializer serializer)
|
||||
|
|
|
|||
Loading…
Reference in a new issue