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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -