public Task <TResult> Sum <TResult>(IQueryable <TResult> queryable) { var expression = queryable.Expression; var query = QueryParser.GetParsedQuery(expression); return(AddItem(AggregateQueryHandler <TResult> .Sum(_schema, query))); }
public Task <TResult> Sum <TResult>(IQueryable <TResult> queryable) { var linqQuery = queryable.As <IMartenQueryable <TResult> >().ToLinqQuery(); return(AddItem(AggregateQueryHandler <TResult> .Sum(linqQuery), null)); }
public Task <TResult> SumAsync <TResult>(CancellationToken token) { return(executeAsync(q => AggregateQueryHandler <TResult> .Sum(Schema, q), token)); }