QueryableExtensionsAggregate Method (IQueryable, IEnumerableAggregateFunction) |
Calculates the results of given aggregates functions on a sequence of elements.
Namespace: Kettic.AspNet.Data.ExtensionsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic static AggregateResultCollection Aggregate(
this IQueryable source,
IEnumerable<AggregateFunction> aggregateFunctions
)
<ExtensionAttribute>
Public Shared Function Aggregate (
source As IQueryable,
aggregateFunctions As IEnumerable(Of AggregateFunction)
) As AggregateResultCollection
public:
[ExtensionAttribute]
static AggregateResultCollection^ Aggregate(
IQueryable^ source,
IEnumerable<AggregateFunction^>^ aggregateFunctions
)
static member Aggregate :
source : IQueryable *
aggregateFunctions : IEnumerable<AggregateFunction> -> AggregateResultCollection
Parameters
- source
- Type: System.LinqIQueryable
An IQueryable whose elements will
be used for aggregate calculation. - aggregateFunctions
- Type: System.Collections.GenericIEnumerableAggregateFunction
The aggregate functions.
Return Value
Type:
AggregateResultCollectionCollection of
AggregateResults calculated for each function.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IQueryable. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also