Custom serialization of enums in MongoDB
The link to this SO question about custom string serialization for enums and vice versa in Json.NET, decorating enum members using the EnumMember attribute - is there a way to make MongoDB perform the same feat?
I just reworked some of the earlier string fields for enums and was wondering if there was a way to instruct Mongo to also read the EnumMember values ββwhen (deactivating) serialization and avoid having to go through the database and update all current text values.
+3
source to share
No one has answered this question yet
See similar questions:
or similar: