How to prevent id serialization to_id by mongodb c# driver for nested objects?
Answers
Smith
2890
Points
78
Posts
|
It's default behavior to convert id to _id of mongodb driver. We can prevent it by decorating following attribute in child or nested object:
Add following attributes in the nested class:
Posted On:
15-Feb-2023 22:42
Thanks. It works. - mongo 24-Apr-2023 05:44
|
Blog
Active User (0)
No Active User!