Пример #1
0
        private IQueryable <T> ApplySpecification(ISpecification <T> spec)
        {
            var evaluator = new SpecificationEvaluator <T>();

            return(evaluator.GetQuery(DbContext.Set <T>().AsQueryable(), spec));
        }
 private IQueryable <T> ApplySpecification(ISpecification <T> spec)
 {
     return(SpecificationEvaluator <T> .GetQuery(_context.Set <T>().AsQueryable(), spec));
 }
Пример #3
0
 private IQueryable <TEntity> ApplySpecification(ISpecification <TEntity> spec)
 {
     return(SpecificationEvaluator <TEntity> .GetQuery(storeContext.Set <TEntity>().AsQueryable(), spec));
 }
Пример #4
0
        private IQueryable <T> ApplySpecification <T>(ISpecification <T> spec) where T : BaseEntity
        {
            var evaluator = new SpecificationEvaluator <T>();

            return(evaluator.GetQuery(_dbContext.Set <T>().AsQueryable(), spec));
        }
Пример #5
0
 private IQueryable <Product> ApplySpecification(ISpecifications <Product> spec)
 {
     return(SpecificationEvaluator <Product> .GetQuery(_context.Set <Product>().AsQueryable(), spec));
 }
Пример #6
0
        private IQueryable <T> ApplySpecification(ISpecification <T> specification)
        {
            var evaluator = new SpecificationEvaluator <T>();

            return(evaluator.GetQuery(_dbSet, specification));
        }
 private IQueryable <T> ApplySpecification(ISpecification <T> spec)
 {
     return(SpecificationEvaluator <T> .GetQuery(_collection.AsQueryable(), spec));
 }
 private IQueryable <TEntity> ApplySpecification(ISpecification <TEntity> spec)
 {
     return(SpecificationEvaluator <TEntity> .GetQuery(DbSet.AsQueryable(), spec));
 }
Пример #9
0
 private IQueryable <Flat> ApplySpecification(ISpecification <Flat> spec)
 {
     return(SpecificationEvaluator <Flat> .GetQuery(session.Query <Flat>().AsQueryable(), spec));
 }
Пример #10
0
 public Lote Get(ISpecification <Lote> especificacion)
 {
     return(SpecificationEvaluator <Lote> .GetQuery(_context.Lotes.AsQueryable(), especificacion).FirstOrDefault());
 }
Пример #11
0
 public ICollection <Lote> Gets(ISpecification <Lote> especificacion)
 {
     return(SpecificationEvaluator <Lote> .GetQuery(_context.Lotes.AsQueryable(), especificacion).ToList());
 }
Пример #12
0
        private IQueryable <T> ApplySpecification(ISpecification <T> spec)
        {
            var query = Context.Set <T>().AsQueryable();

            return(SpecificationEvaluator <T> .GetQuery(query, spec));
        }
Пример #13
0
 private IQueryable <T> ApplySpecification(ISpecification <T> specification)
 => SpecificationEvaluator <T> .GetQuery(_dikolDbContext.Set <T>().AsQueryable(), specification);