public EfRepository(AuctionDbContext dbContext) { _dbContext = dbContext; _dbSet = _dbContext.Set <TEntity>(); }
private IQueryable <TEntity> ApplySpecification(ISpecification <TEntity> spec, bool evaluateCriteriaOnly = false) { var evaluator = new SpecificationEvaluator(); return(evaluator.GetQuery <TEntity>(_dbContext.Set <TEntity>().AsQueryable(), spec, evaluateCriteriaOnly)); }