c# mongodb hashtable Unknown discriminator value code example
Example: unknown discriminator value mongodb
BsonClassMap.RegisterClassMap<MyClass>();
// or:
[BsonDiscriminator("MyClass")]
public class MyClass
{ ... }
BsonClassMap.RegisterClassMap<MyClass>();
// or:
[BsonDiscriminator("MyClass")]
public class MyClass
{ ... }