Method DeferredAggregate
DeferredAggregate<TSource>(IQueryable<TSource>, Expression<Func<TSource, TSource, TSource>>)
This method is the deferred implementation of the extension method
Declaration
public static QueryDeferred<TSource> DeferredAggregate<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, TSource, TSource>> func)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<TSource> | source | The System.Linq.IQueryable`1 that contains the elements to be counted. |
Expression<Func<TSource, TSource, TSource>> | func | An accumulator function to apply to each element. |
Returns
Type | Description |
---|---|
QueryDeferred<TSource> | The final accumulator value. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of source. |
DeferredAggregate<TSource, TAccumulate>(IQueryable<TSource>, TAccumulate, Expression<Func<TAccumulate, TSource, TAccumulate>>)
This method is the deferred implementation of the extension method
Declaration
public static QueryDeferred<TAccumulate> DeferredAggregate<TSource, TAccumulate>(this IQueryable<TSource> source, TAccumulate seed, Expression<Func<TAccumulate, TSource, TAccumulate>> func)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<TSource> | source | A sequence to aggregate over. |
TAccumulate | seed | The initial accumulator value. |
Expression<Func<TAccumulate, TSource, TAccumulate>> | func | An accumulator function to invoke on each element. |
Returns
Type | Description |
---|---|
QueryDeferred<TAccumulate> | The final accumulator value. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of source. |
TAccumulate | The type of the accumulator value. |
DeferredAggregate<TSource, TAccumulate, TResult>(IQueryable<TSource>, TAccumulate, Expression<Func<TAccumulate, TSource, TAccumulate>>, Expression<Func<TAccumulate, TResult>>)
This method is the deferred implementation of the extension method
Declaration
public static QueryDeferred<TResult> DeferredAggregate<TSource, TAccumulate, TResult>(this IQueryable<TSource> source, TAccumulate seed, Expression<Func<TAccumulate, TSource, TAccumulate>> func, Expression<Func<TAccumulate, TResult>> selector)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<TSource> | source | A sequence to aggregate over. |
TAccumulate | seed | The initial accumulator value. |
Expression<Func<TAccumulate, TSource, TAccumulate>> | func | An accumulator function to invoke on each element. |
Expression<Func<TAccumulate, TResult>> | selector | A function to transform the final accumulator value into the result value. |
Returns
Type | Description |
---|---|
QueryDeferred<TResult> | The transformed final accumulator value. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of source. |
TAccumulate | The type of the accumulator value. |
TResult | The type of the resulting value. |