-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: BSON
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
I am not sure if it's bug, but in my opinion it is.
I am using CamelCaseElementNameConvention and I am expecting that all names will be converted to camel case.
var convensions = new ConventionPack { new CamelCaseElementNameConvention() }; ConventionRegistry.Register("default", convensions, x => true);
Lets say I have such class
public class MyDocument { public string Name { get; set; } [BsonExtraElements] public AdditionalInfo AdditionalInfo { get; set; } /* class AdditionalInfo implements IDictionary<string, object> */ }
Then this class is serialised and stored in database, it looks like this
{
"name": "Tom",
"Age": 24,
"Gender": "male"
}
I am expecting to have such result
{
"name": "Tom",
"age": 24,
"gender": "male"
}