Entity Framework 6 Code First - Is Repository Implementation a Good One?

后端 未结 7 1747
醉话见心
醉话见心 2020-11-30 16:09

I am about to implement an Entity Framework 6 design with a repository and unit of work.

There are so many articles around and I\'m not sure what the best advice is:

7条回答
  •  日久生厌
    2020-11-30 17:15

    I always use UoW with EF code first. I find it more performant and easier tot manage your contexts, to prevent memory leaking and such. You can find an example of my workaround on my github: http://www.github.com/stefchri in the RADAR project.

    If you have any questions about it feel free to ask them.

提交回复
热议问题