Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
2.10.2
-
None
-
Windows 10
Description
Setting IgnoreIfDefault to true through the BsonClassMap.RegisterClassMap call does not seem to work.
Eg:
doc.MapMember(x => x.TriesDone).SetIgnoreIfDefault(true); |
TriesDone gets serialized to the database with a default value of 0. I am having the same issue with reference types set to null.