Click or drag to resize

DataAccessAdapterCoreExecuteScalarQueryAsync Method

Async variant of ExecuteScalarQuery(IRetrievalQuery). Executes the passed in query as a scalar query and returns the value returned from this scalar execution.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.7.0.0 (5.7.0)
Syntax
public virtual Task<Object> ExecuteScalarQueryAsync(
	IRetrievalQuery queryToExecute,
	CancellationToken cancellationToken
)

Parameters

queryToExecute
Type: SD.LLBLGen.Pro.ORMSupportClassesIRetrievalQuery
a scalar query, which is a SELECT query which returns a single value
cancellationToken
Type: System.ThreadingCancellationToken
the cancellation token

Return Value

Type: TaskObject
the scalar value returned from the query.
See Also