Implementing repository for EF4 using DDD and IoC

前端 未结 2 2047
野的像风
野的像风 2021-01-06 00:00

I think I\'m going in circles.

I\'m working on an MVC 3 solution using EF4 & POCOs (database-first) and IoC. My repository and UoW patterns were mostly adopted

2条回答
  •  长发绾君心
    2021-01-06 00:16

    Entity framework is a repository by itself. Why add an extra layer of complexity (repository). It just makes querying more difficult and you have to write all the repetitive code again and again (FindById(), FindAll(), FindAllByName() ....)

提交回复
热议问题