Click or drag to resize
CqlQueryExtensions.Where<TSource> Method
Returns a CqlQuery which after execution returns filtered sequence of values based on a predicate. To execute this CqlQuery use Execute() method.

Namespace: Cassandra.Data.Linq
Assembly: Cassandra (in Cassandra.dll) Version: 3.0.5 (git 25b8d4e)
Syntax
C#
public static CqlQuery<TSource> Where<TSource>(
	this CqlQuery<TSource> source,
	Expression<Func<TSource, bool>> predicate
)

Parameters

source
Type: Cassandra.Data.Linq.CqlQuery<TSource>
The CqlQuery<TSource> to filter.
predicate
Type: System.Linq.Expressions.Expression<Func<TSource, Boolean>>
A function to test each element for a condition.

Type Parameters

TSource
The type of the elements of source.

Return Value

Type: CqlQuery<TSource>
a 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 CqlQuery<TSource>. 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