private IQueryable <T> ApplySpecification(ISpecification <T> spec) { return(SpecificationEvaluator <T> .GetQuery(_context.Set <T>().AsQueryable(), spec)); }
private IQueryable <T> Applyspcification(ISpecificationRepository <T> specification) { return(SpecificationEvaluator <T> .GetQuery(_storeContext.Set <T>().AsQueryable(), specification)); }
private IQueryable <T> ApplySpecification(ISpecification <T> spec) { var evaluater = new SpecificationEvaluator(); return(evaluater.GetQuery(_dbContext.Set <T>(), spec)); }
//this is related to the Pagination class in the Helper folder: public async Task <int> CountAsync(ISpecification <T> ISpecification) { //count the number of result returned (using microsoft .CountAsync() function) (our function name is also CountAsync()) return(await SpecificationEvaluator <T> .GetQuery(_Context.Set <T>().AsQueryable(), ISpecification).CountAsync()); }
private IQueryable <T> ApplySpecification(ISpecification <T> spec) => SpecificationEvaluator <T, TPrimaryKey> .GetQuery(_storeContext.Set <T>().AsQueryable(), spec);
private IQueryable <T> ApplySpecification(ISpecification <T> spec) => SpecificationEvaluator <T> .GetQuery(context.Set <T>().AsQueryable(), spec);