I would like to use EFf 4 as my ORM in my DDD project. I am going to generate my model based on my classes. Should I create classes that are basically dto objects for my business objects to consumer or should I implement the actuall BO classes in my EF model?
+2
A:
I think that the EF model should be the business objects, otherwise you will just have another layer of abstraction that you will have to write plumbing code for.
Anders Abel
2010-04-05 18:15:14
I've created that other layer of abstraction on an EFv1 project, and it really isn't a good solution.
Nelson Reis
2010-04-06 10:38:02
But what if i want to customize the "DB Model" for example i'm using localized tables in DB but want to represent this two tables to one Model in my BL. How to do that if i don't have my own BL Model ? i can't depend on EF Model because EF will give me two classes for this localized table !.
Wahid Bitar
2010-10-19 11:06:59