CqlQueryExtensionsWhereTSource Method |
Returns a CqlQuery which after execution returns filtered sequence of values based on a predicate.
To execute this CqlQuery use Execute() method.
Namespace: Dse.Data.LinqAssembly: Dse (in Dse.dll) Version: 2.3.0
Syntax public static CqlQuery<TSource> Where<TSource>(
this CqlQuery<TSource> source,
Expression<Func<TSource, bool>> predicate
)
Parameters
- source
- Type: Dse.Data.LinqCqlQueryTSource
The CqlQuery<TSource> to filter. - predicate
- Type: System.Linq.ExpressionsExpressionFuncTSource, Boolean
A function to test each element for a condition.
Type Parameters
- TSource
- The type of the elements of source.
Return Value
Type:
CqlQueryTSourcea 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