示例#1
0
 public ContractRepository(IMainDatabaseContext dbContext) : base(dbContext)
 {
     _dbContext = (MainDatabaseContext)dbContext;
 }
示例#2
0
 /// <summary>
 /// The class constructor.
 /// </summary>
 /// <param name="dbContext">The DI registered interface of the main database context.</param>
 public BaseRepository(IMainDatabaseContext dbContext)
 {
     _dbContext = (MainDatabaseContext)dbContext;
     DbSet      = _dbContext.Set <TEntity>();
 }
示例#3
0
 public RiskQuestionRepository(IMainDatabaseContext dbContext) : base(dbContext)
 {
     _dbContext = (MainDatabaseContext)dbContext;
 }