Associates a named aggregate with a query.

Namespace:  Mindscape.LightSpeed.Linq
Assembly:  Mindscape.LightSpeed.Linq (in Mindscape.LightSpeed.Linq.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

C#
public static IQueryable<T> WithAggregate<T>(
	IQueryable<T> source,
	string aggregateName
)
Visual Basic (Declaration)
Public Shared Function WithAggregate(Of T) ( _
	source As IQueryable(Of T), _
	aggregateName As String _
) As IQueryable(Of T)

Parameters

source
Type: System.Linq..::.IQueryable<(Of <(T>)>)
An IQueryable<(Of <(T>)>) with which to associate the aggregate.
aggregateName
Type: System..::.String
The aggregate name.

Type Parameters

T
The type of the elements of source.

Return Value

An IQueryable<(Of <(T>)>) which will perform the same query, but with the named aggregate.

See Also