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

后端 未结 3 983
长发绾君心
长发绾君心 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:32

    You might take a look at this sample (MVCArch) I've written some months ago. It takes advantages of :

    • Entity Framework
    • Repository & Unit Of Work patterns
    • Automapper
    • Ninject
    • etc...

    Hope this helps.

提交回复
热议问题