Closed vella-nicholas closed 5 years ago
Hi, only the main document class should implement IDocument, not the nested objects. For the nested entities you must generate the Ids yourself, the mongodb driver does not seem to populate them by default.
Thank you for your answer, Alexandre.
No problem.
When you have nested documents, should both classes implement IDocument? Do you need to set the BsonId for the ID property of the nested object?