private IQueryable <T> ApplySpecification(ISpecification <T> spec) { return(SpecificationEvaluater <T> .GetQuery(_context.Set <T>().AsQueryable(), spec)); }
public async Task <T> GetEntityExpression(Expression <Func <T, bool> > exp) { return(await SpecificationEvaluater <T> .GetQuery(_context.Set <T>().AsQueryable(), exp).FirstOrDefaultAsync()); }