Пример #1
0
 public UnitOfWork(CustomerDbContext customerDbContext, IRepository <T> repo)
 {
     _customerDbContext = customerDbContext;
     _repo = repo;
 }
Пример #2
0
 public void SetDbContext(CustomerDbContext customerDbContext)
 {
     _customerDbContext = customerDbContext;
     _dbSet             = _customerDbContext.Set <TEntity>();
 }