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

            return(SpecificationEvaluator <T> .GetQueryable(queryable, specification));
        }