Click or drag to resize
CqlQueryExtensionsCountTSource Method
Returns the number of rows matching the query. To execute this CqlScalar use Execute() method.

Namespace: Cassandra.Data.Linq
Assembly: Cassandra (in Cassandra.dll) Version: 3.0.9 (git 5ca22bb)
Syntax
C#
public static CqlScalar<long> Count<TSource>(
	this CqlQuery<TSource> source
)

Parameters

source
Type: Cassandra.Data.LinqCqlQueryTSource
The CqlQuery<TSource> to return the first element of.

Type Parameters

TSource
The type of the elements of source.

Return Value

Type: CqlScalarInt64
A single result: the number of rows matching the query.

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