document-based-database

How would I model data that is heirarchal and relational in a document-oriented database system like RavenDB?

。_饼干妹妹 提交于 2019-11-28 19:20:08
问题 Document oriented databases (particularly RavenDB) are really intriguing me, and I'm wanting to play around with them a bit. However as someone who is very used to relational mapping, I was trying to think of how to model data correctly in a document database. Say I have a CRM with the following entities in my C# application (leaving out unneeded properties): public class Company { public int Id { get; set; } public IList<Contact> Contacts { get; set; } public IList<Task> Tasks { get; set; }