Click or drag to resize
ICqlQueryAsyncClient.SingleOrDefaultAsync<T> Method (Cql)
Gets a single T from Cassandra using the CQL statement specified. Will return the default value of T if no records are found. Will throw if more than one record is returned.

Namespace: Cassandra.Mapping
Assembly: Cassandra (in Cassandra.dll) Version: 3.3.0
Syntax
C#
Task<T> SingleOrDefaultAsync<T>(
	Cql cql
)

Parameters

cql
Type: Cassandra.Mapping.Cql

Type Parameters

T

Return Value

Type: Task<T>
See Also