Пример #1
0
        public Task <TResult> Min <TResult>(IQueryable <TResult> queryable)
        {
            var expression = queryable.Expression;

            var query = QueryParser.GetParsedQuery(expression);

            return(AddItem(AggregateQueryHandler <TResult> .Min(_schema, query)));
        }
Пример #2
0
        public Task <TResult> Min <TResult>(IQueryable <TResult> queryable)
        {
            var linqQuery = queryable.As <IMartenQueryable <TResult> >().ToLinqQuery();

            return(AddItem(AggregateQueryHandler <TResult> .Min(linqQuery), null));
        }
Пример #3
0
 public Task <TResult> MinAsync <TResult>(CancellationToken token)
 {
     return(executeAsync(q => AggregateQueryHandler <TResult> .Min(Schema, q), token));
 }