Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to use EF 4 and DDD

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?

like image 677
William Avatar asked Nov 06 '22 14:11

William


1 Answers

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.

like image 120
Anders Abel Avatar answered Nov 26 '22 06:11

Anders Abel