I'm using RavenDB with models like:
public class Cart {
List<Item> Items = new List<Item>();
}
public class Item {
public Cart Cart;
}
When I add an Item
to a Cart
, I wire up both sides of the relationship.
How does RavenDB handle serializing & deserializing this? Will the reference to Cart
be assigned automatically or is there a way to manually wire it on load?