CqlQueryExtensionsGroupByTKey, TSource Method |
Returns a CqlQuery which after execution returns grouped sequence of values based on a predicate.
To execute this CqlQuery use Execute() method.
Namespace: Dse.Data.LinqAssembly: Dse (in Dse.dll) Version: 2.4.0
Syntax public static CqlQuery<IGrouping<TKey, TSource>> GroupBy<TKey, TSource>(
this CqlQuery<TSource> source,
Expression<Func<TSource, TKey>> predicate
)
Parameters
- source
- Type: Dse.Data.LinqCqlQueryTSource
The CqlQuery<TSource> to filter. - predicate
- Type: System.Linq.ExpressionsExpressionFuncTSource, TKey
A function to test each element for a condition.
Type Parameters
- TKey
- The type of the value returned by selector.
- TSource
- The type of the elements of source.
Return Value
Type:
CqlQueryIGroupingTKey,
TSourcea CqlQuery<TSource> which after execution will return an IEnumerable<TSource>
that contains elements from the input sequence that satisfy the condition.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
CqlQueryTSource. 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