Exemplo n.º 1
0
 private IQueryable <TEntity> ApplySpec(ISpecification <TEntity> spec)
 {
     return(SpecEvaluator <TEntity> .GetQuery(_context.Set <TEntity>(), spec));
 }
Exemplo n.º 2
0
 public async Task <int> CountAsync(ISpecification <TEntity> spec)
 {
     return(await SpecEvaluator <TEntity> .GetQuery(_context.Set <TEntity>(), spec, applyCritieriaOnly : true).CountAsync());
 }
Exemplo n.º 3
0
 private IQueryable <T> ApplySpec(ISpec <T> spec)
 {
     return(SpecEvaluator <T> .GetQuery(_context.Set <T>().AsQueryable(), spec));
 }