Example #1
0
        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);
        }
Example #2
0
 public Task <IPage <TResponse> > AskAsync(IPageQriteria <TParam> qrit, String source = null)
 => ((IQuery <IPageQriteria <TParam>, IPage <TResponse> >)Query).AskAsync(qrit, source);