fix: register SerializedKeyValuePair.Key to BsonClassMap (#6036)
Manually register SerializedKeyValuePair.Key to BsonClassMap to prevent index creation failure.
This commit is contained in:
parent
99ab5e4ba1
commit
2eee58af66
|
|
@ -80,6 +80,7 @@ public class MongoDbFeature : FeatureBase
|
|||
{
|
||||
map.AutoMap();
|
||||
map.SetIgnoreExtraElements(true); // Needed for missing ID property
|
||||
map.MapProperty(x => x.Key); // Needed for non-setter property
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue