Click or drag to resize

MapperSingleOrDefaultAsyncT Method (String, Object)

Gets a single T from Cassandra using the CQL statement and parameter values specified. Will return the default value of T if no records are found. Will throw if more than one record is returned.

Namespace:  Dse.Mapping
Assembly:  Dse (in Dse.dll) Version: 2.9.0
Syntax
C#
public Task<T> SingleOrDefaultAsync<T>(
	string cql,
	params Object[] args
)

Parameters

cql
Type: SystemString
args
Type: SystemObject

Type Parameters

T

Return Value

Type: TaskT

Implements

ICqlQueryAsyncClientSingleOrDefaultAsyncT(String, Object)
See Also