Storing composite/nested object graph
问题 I am currently developing a document store in Mongo DB which contains a complete material breakdown of a specific item. The breakdown is calculated and contains a composite structure. The domain model: public interface IReagent { int ItemId { get; set; } int Quantity { get; set; } ConcurrentBag<IReagent> Reagents { get; set; } } public class Craft : IReagent { public int ItemId { get; set; } public int Quantity { get; set; } public int SpellId { get; set; } public int Skill { get; set; }