private IQueryable <Flat> ApplySpecification(ISpecification <Flat> spec) { return(SpecificationEvaluator <Flat> .GetQuery(session.Query <Flat>().AsQueryable(), spec)); }
private IQueryable <T> ApplySpecification(ISpecification <T> spec) { var evaluator = new SpecificationEvaluator <T>(); return(evaluator.GetQuery(this.dbContext.Set <T>().AsQueryable(), spec)); }
private IQueryable <T> ApplySpecification(ISpecification <T> spec) { return(SpecificationEvaluator <T> .GetQuery(_context.Set <T>().AsQueryable(), spec)); }
private IQueryable <TEntity> ApplySpecification(ISpecification <TEntity> spec) { return(SpecificationEvaluator <TEntity> .GetQuery(_dbContext.Set <TEntity>().AsQueryable(), spec)); }
private IQueryable <T> ApplySpecification <T>(ISpecification <T> spec) where T : BaseEntity { var evaluator = new SpecificationEvaluator <T>(); return(evaluator.GetQuery(_dbContext.Set <T>().AsQueryable(), spec)); }
public async Task <IEnumerable <TEntity> > ApplyAsync(ISpecification <TEntity, TKey> specification) { return(await SpecificationEvaluator <TEntity, TKey> .GetQuery(_context.Set <TEntity>().AsQueryable(), specification) .ToListAsync()); }
public Palma Get(ISpecification <Palma> especificacion) { return(SpecificationEvaluator <Palma> .GetQuery(_context.Palmas.AsQueryable(), especificacion).FirstOrDefault()); }
public Cultivo Get(ISpecification <Cultivo> especificacion) { return(SpecificationEvaluator <Cultivo> .GetQuery(_context.Cultivos.AsQueryable(), especificacion).FirstOrDefault()); }
private IQueryable <TEntity> ApplySpecification(ISpecification <TEntity, TPrimaryKeyType> specification) => SpecificationEvaluator <TEntity, TPrimaryKeyType> .GetQuery(dbContext.Set <TEntity>().AsQueryable(), specification);
protected IQueryable <T> ApplySpecification(ISpecification <T> spec) { return(SpecificationEvaluator <T> .GetQuery(_dbContext.Set <T>().AsQueryable(), spec)); }
public Tarea Get(ISpecification <Tarea> especificacion) { return(SpecificationEvaluator <Tarea> .GetQuery(_context.Tareas.AsQueryable(), especificacion).FirstOrDefault()); }
protected IQueryable <T> ApplySpecification(ISpecification <T> spec) { return(SpecificationEvaluator <T> .GetQuery(CreateQuery(spec.PartitionKeyValue), spec)); }
private IQueryable <Product> ApplySpecification(ISpecifications <Product> spec) { return(SpecificationEvaluator <Product> .GetQuery(_context.Set <Product>().AsQueryable(), spec)); }
public async Task <List <T> > GetListAsync <T>(ISpecification <T> spec) where T : Entity { var query = new SpecificationEvaluator <T>().GetQuery(_shopDbContext.Set <T>().AsQueryable(), spec); return(await query.ToListAsync()); }
public IEnumerable <T> FindWithSpecificationPattern(ISpecification <T> specification = null) { IQueryable <T> data = _context.Set <T>().AsQueryable(); return(SpecificationEvaluator <T> .GetQuery(data, specification)); }
public SpecificationEvaluatorTests() { this.evaluator = new SpecificationEvaluator <Store>(); }
public static IQueryable <T> ApplySpecification <T>(this IQueryable <T> query, ISpecification <T> spec) where T : EntityBase, IEntity { return(SpecificationEvaluator <T> .GetQuery(query, spec)); }
private async Task <IEnumerable <IGrouping <TK, T> > > ApplyGroupingSpecificationAsync <TK>(IGroupingSpecification <T, TK> spec) { // must return IEnumerable since GroupBy computation on database is not supported yet in EF Core 3.0 // TODO: change as soon EF Core supports GroupBy return(await SpecificationEvaluator <T> .GetGroupingEnumerableAsync(DbContext.Set <T>().AsQueryable(), spec)); }
public ICollection <Palma> Gets(ISpecification <Palma> especificacion) { return(SpecificationEvaluator <Palma> .GetQuery(_context.Palmas.AsQueryable(), especificacion).ToList()); }
public ICollection <Tercero> Gets(ISpecification <Tercero> especificacion) { return(SpecificationEvaluator <Tercero> .GetQuery(_context.Terceros.AsQueryable(), especificacion).ToList()); }
private IQueryable <T> ApplySpecification(ISpecification <T> spec) { return(SpecificationEvaluator <T> .GetQuery(_collection.AsQueryable(), spec)); }
public Tercero Get(ISpecification <Tercero> especificacion) { return(SpecificationEvaluator <Tercero> .GetQuery(_context.Terceros.AsQueryable(), especificacion).FirstOrDefault()); }
private IQueryable <T> ApplySpecification(ISpecification <T> spec) { var query = _context.Set <T>().AsQueryable(); return(SpecificationEvaluator <T> .Evaluate(query, spec)); }
private IQueryable <TEntity> ApplySpecification(ISpecification <TEntity> specification) { var evaluator = new SpecificationEvaluator <TEntity>(); return(evaluator.GetQuery(DbContext.Set <TEntity>().AsQueryable(), specification)); }
private IQueryable <TEntity> ApplySpecification <TEntity>(ISpecification <TEntity> spec) where TEntity : BaseEntity { return(SpecificationEvaluator.GetQuery(_context.Set <TEntity>().AsQueryable(), spec)); }
private IQueryable <T> ApplySpecification <T>(ISpecification <T> spec) where T : class { var evaluator = new SpecificationEvaluator(); return(evaluator.GetQuery(_context.Set <T>().AsQueryable(), spec)); }
private IQueryable <TEntity> ApplySpecification(ISpecification <TEntity> spec) { return(SpecificationEvaluator <TEntity> .GetQuery(dbSet.AsQueryable(), spec)); }
protected IQueryable <TEntity> ApplySpecification(ISpecification <TEntity> spec) { return(SpecificationEvaluator.ApplySpecification(Context.Set <TEntity>().AsQueryable(), spec)); }
private IQueryable <T> ApplySpecification(ISpecification <T> spec) { var evaluator = new SpecificationEvaluator <T>(); return(evaluator.GetQuery(dbSet.AsQueryable(), spec)); }
public IEnumerable <Client> GetBy(ISpecification <Client> spec = null) { return(SpecificationEvaluator <Client> .ApplySpecification(_clients.AsQueryable(), spec)); }