예제 #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;
 }