Aggregate root with Entity Framework using Domain Driven Design
问题 I am building an application using Domain Driven Design that is using Entity Framework. My goal is to allow my domain models (that get persisted with EF) contain some logic within them. Out of the box, entity-framework is pretty nonrestrictive as to how entities get added to the graph and then persisted. Take for example, my domain as POCO (without logic): public class Organization { private ICollection<Person> _people = new List<Person>(); public int ID { get; set; } public string