同步OpenAuth.Core,增加多数据源

This commit is contained in:
ÂëÉñ
2020-12-29 23:52:06 +08:00
committed by yubaolee
parent 20a717b2e6
commit 304a0eb54d
40 changed files with 119 additions and 83 deletions

View File

@@ -11,11 +11,11 @@ using Z.EntityFramework.Plus;
namespace OpenAuth.Repository
{
public class BaseRepository<T> : IRepository<T> where T : BaseEntity
public class BaseRepository<T,TDbContext> : IRepository<T,TDbContext> where T : BaseEntity where TDbContext: DbContext
{
private OpenAuthDBContext _context;
private TDbContext _context;
public BaseRepository(OpenAuthDBContext context)
public BaseRepository(TDbContext context)
{
_context = context;
}