Beispiel #1
0
        public Task <TResult> Max <TResult>(IQueryable <TResult> queryable)
        {
            var expression = queryable.Expression;

            var query = QueryParser.GetParsedQuery(expression);

            return(AddItem(AggregateQueryHandler <TResult> .Max(_schema, query)));
        }
Beispiel #2
0
        public Task <TResult> Max <TResult>(IQueryable <TResult> queryable)
        {
            var linqQuery = queryable.As <IMartenQueryable <TResult> >().ToLinqQuery();

            return(AddItem(AggregateQueryHandler <TResult> .Max(linqQuery), null));
        }
Beispiel #3
0
 public Task <TResult> MaxAsync <TResult>(CancellationToken token)
 {
     return(executeAsync(q => AggregateQueryHandler <TResult> .Max(Schema, q), token));
 }