c# - DDD and how to map EF entities to domain objects? -
i'm new ddd try use ddd ideas in new project. i'm using entity framework(edmx). on thing i've learnt ddd avoid having public setters in domain objects. if correct, how map ef entities(ef generated classes) domain objects? have put initial values in constructor?
any appreciated!
you don't need have public setters in entities when using edmx file. can change setter accessibility. after can use ef entities domain entities , ef complex types value objects. still has limitations have live less ideal design fit ef needs.
Comments
Post a Comment