public IQueryable Query(ILinqProvider linqProvider, IPageQriteria <TParam> qrit) { var filterExpr = qrit.Subject != null ? ConventionBuilder <TEntity> .FilterExpression(qrit.Subject) : (x) => true; var query = linqProvider .Query <TEntity>() .Where(filterExpr) .OrderByConventions(qrit); return(query); }
public Task <IPage <TResponse> > AskAsync(IPageQriteria <TParam> qrit, String source = null) => ((IQuery <IPageQriteria <TParam>, IPage <TResponse> >)Query).AskAsync(qrit, source);