public Repository(EmpyrealContext context) { _context = context; _dbset = context.Set <T>(); }
public UnitOfWork(EmpyrealContext context, IDbContextTransaction transaction = null) { _context = context; _transaction = _context.Database.BeginTransaction(); }