You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unable to properly recall nested objects in LiteDB. An object that contains a collection of children of the same object (i.e. a tree structure) fails to populate the collection when retrieved from the database.
As can be seen, the second line shows that Level1 is not restored correctly. I'm new to LiteDB so assume I am missing something - should this be possible? Do I need to use BsonRef or similar to achieve this?
Tested with LiteDB v5.0.21, .Net v8.0.303
Many thanks for any pointers.
The text was updated successfully, but these errors were encountered:
Question
I'm unable to properly recall nested objects in LiteDB. An object that contains a collection of children of the same object (i.e. a tree structure) fails to populate the collection when retrieved from the database.
Code
A simple object (MyObj.cs):
A basic console application to instantiate the object and test (Program.cs):
Output:
As can be seen, the second line shows that Level1 is not restored correctly. I'm new to LiteDB so assume I am missing something - should this be possible? Do I need to use BsonRef or similar to achieve this?
Tested with LiteDB v5.0.21, .Net v8.0.303
Many thanks for any pointers.
The text was updated successfully, but these errors were encountered: