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

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

    Did you go through these tutorials.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题