public UnitOfWork(CustomerDbContext customerDbContext, IRepository <T> repo) { _customerDbContext = customerDbContext; _repo = repo; }
public void SetDbContext(CustomerDbContext customerDbContext) { _customerDbContext = customerDbContext; _dbSet = _customerDbContext.Set <TEntity>(); }