Storing uuid in _id using .net driver in c#
ykl
318
Points
16
Posts
|
I'm trying to store _id as uuid in mongodb but it's converting to LUUID. Entity model:
In mongoDB:
I'm using following to generate GUID:
I'm refering here: https://studio3t.com/knowledge-base/articles/mongodb-best-practices-uuid-data/ - ykl 08-Oct-2023 22:53
|
Answers
Smith
2890
Points
78
Posts
|
Try to use serializer option:
as:
Posted On:
09-Oct-2023 02:30
Thanks - ykl 16-Oct-2023 22:45
|
ykl
318
Points
16
Posts
|
Thanks. I resolved issue by adding folloinwg serializer:
Posted On:
16-Oct-2023 22:44
Thanks for sharing solution. - Brian 17-Oct-2023 21:37
|