예제 #1
0
 private IQueryable <T> ApplySpecification(ISpecification <T> spec)
 {
     return(SpecificationEvaluator <T> .GetQuery(_context.Set <T>().AsQueryable(), spec));
 }
예제 #2
0
        private IQueryable <T> ApplySpecification(ISpecification <T> spec)
        {
            var evaluator = new SpecificationEvaluator <T>();

            return(evaluator.GetQuery(_dbContext.Set <T>().AsQueryable(), spec));
        }
 public IEnumerable <T> FindWithSpecificationPattern(ISpecification <T> specification = null)
 {
     return(SpecificationEvaluator <T> .GetQuery(_context.Set <T>().AsQueryable(), specification));
 }