How to marry EntityFramework, Repository, UnitOfWork and Automapper altogether in one MVC application?

后端 未结 3 982
长发绾君心
长发绾君心 2021-01-06 08:37

First I decided to create one Interface called it IDataAccessLayer and started putting everything into it: methods like GetUsers(), GetUser(i

3条回答
  •  醉酒成梦
    2021-01-06 09:24

    First here is an overall article about n-tier architecture using the Repository and UnitOfWork principles: link. I have some experience working with EF and the afore mentioned patterns and I found this article of great help.

    Take a look here as well as here for the MSDN articles on those principles.

    Regards.

提交回复
热议问题