Database abstraction layer design - Using IRepository the right way?

后端 未结 5 693
日久生厌
日久生厌 2020-12-12 18:36

I\'m in the process of designing my ASP.NET MVC application and I ran across a couple of interesting thoughts.

Many samples I have seen describe and use the Reposito

5条回答
  •  孤街浪徒
    2020-12-12 19:08

    Do people have individual repositorys based on each table (IUserRepository)? I tend to have a repository for each aggregate, not each table.

    Do they use a generic IRepository? if possible, yes

    Do they use a static repository factory? I prefer the injection of a Repository instance through an IOC container

提交回复
热议问题