开发者

What is the best way to use EF 4 and DDD

开发者 https://www.devze.com 2022-12-26 06:23 出处:网络
I would like to use EFf 4 as my ORM in my DDD project. I am going to generate 开发者_如何学Cmy model based on my classes.Should I create classes that are basically dto objects for my business objects

I would like to use EFf 4 as my ORM in my DDD project. I am going to generate 开发者_如何学Cmy 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号