Click or drag to resize

Mapper.FirstOrDefaultAsync<T> Method (Cql)

Gets the first T from Cassandra using the CQL specified. Will return the default value of T if no records are found.

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

Parameters

cql
Type: Cassandra.Mapping.Cql

Type Parameters

T

Return Value

Type: Task<T>

Implements

ICqlQueryAsyncClient.FirstOrDefaultAsync<T>(Cql)
See Also