コード例 #1
0
 protected GenericRepository(CustomerDbContext dbContext)
 {
     _dbContext = dbContext;
     _dbSet     = _dbContext.Set <TEntity>();
 }
コード例 #2
0
 public CustomerRepository(CustomerDbContext dbContext) : base(dbContext)
 {
 }
 protected GenericRepository(CustomerDbContext dbContext)
 {
     this._dbContext = dbContext;
     this._dbSet     = _dbContext.Set <T>();
 }