mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 10:37:55 +08:00
同步OpenAuth.Core,增加多数据源
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user