public Repository(DvorContext context) { _context = context; _dbSet = _context.Set <T>(); }
public UnitOfWork(DvorContext context, IRepositoryFactory repositoryFactory) { _db = context; _repositoryFactory = repositoryFactory; }
public Repository(DvorContext context) { _context = context; _dbSet = _context.Set <T>(); }
public UnitOfWork(DvorContext context, IRepositoryFactory repositoryFactory) { _db = context; _repositoryFactory = repositoryFactory; }