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

            var query = QueryParser.GetParsedQuery(expression);

            return(AddItem(AggregateQueryHandler <TResult> .Sum(_schema, query)));
        }
Exemple #2
0
        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));
 }