-
Type:
Bug
-
Resolution: Works as Designed
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Dotnet Drivers
Summary
Guid is not represented the same when storing it in Dictionary<string, object>.
If serializing Ienumerable<Guid> as dict, value, it's stored as UUID, but if serializing Guid, it's stored as binary.
Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).
2.24.0
How to Reproduce
Run the attached code.
Store document with this line commented out
BsonDefaults.GuidRepresentation = GuidRepresentation.Standard;
Check all guids in the collection.
Delete the document from the collection, uncoment mentioned line, and re run the code again.
You will now notice all guids are stored as UUIDs, as opposed in the previous example.
Additional Background
No additional information at this point.
- related to
-
CSHARP-4784 List<dynamic> does not work when Guids.
-
- Investigating
-