Example #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));
 }
Example #3
0
 private IQueryable <TEntity> ApplySpecification(ISpecification <TEntity> spec)
 {
     return(SpecificationEvaluator <TEntity> .GetQuery(storeContext.Set <TEntity>().AsQueryable(), spec));
 }
Example #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));
        }
Example #5
0
 private IQueryable <Product> ApplySpecification(ISpecifications <Product> spec)
 {
     return(SpecificationEvaluator <Product> .GetQuery(_context.Set <Product>().AsQueryable(), spec));
 }
Example #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));
 }
Example #9
0
 private IQueryable <Flat> ApplySpecification(ISpecification <Flat> spec)
 {
     return(SpecificationEvaluator <Flat> .GetQuery(session.Query <Flat>().AsQueryable(), spec));
 }
Example #10
0
 public Lote Get(ISpecification <Lote> especificacion)
 {
     return(SpecificationEvaluator <Lote> .GetQuery(_context.Lotes.AsQueryable(), especificacion).FirstOrDefault());
 }
Example #11
0
 public ICollection <Lote> Gets(ISpecification <Lote> especificacion)
 {
     return(SpecificationEvaluator <Lote> .GetQuery(_context.Lotes.AsQueryable(), especificacion).ToList());
 }
Example #12
0
        private IQueryable <T> ApplySpecification(ISpecification <T> spec)
        {
            var query = Context.Set <T>().AsQueryable();

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