Priority: Major - P3
Resolution: Works as Designed
Affects Version/s: None
Fix Version/s: None
Given the following example class:
If you register an EnumRepresentationConvention using the following code and try to insert an instance of the class
The last line throws a BsonSerializationException with the message:
When using DictionaryRepresentation.Document key values must serialize as strings.
If I alter the code to include the following line anywhere before the Insert.
The insert succeeds and the resulting doc in the database looks like this: