Click or drag to resize

DaoBaseExecuteScalarQueryAsync Method

Async variant of ExecuteScalarQuery(IRetrievalQuery, ITransaction) 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.8.0.0 (5.8.21.0111)
Syntax
public virtual Task<Object> ExecuteScalarQueryAsync(
	IRetrievalQuery queryToExecute,
	ITransaction containingTransaction,
	CancellationToken cancellationToken
)

Parameters

queryToExecute
Type: SD.LLBLGen.Pro.ORMSupportClassesIRetrievalQuery
a scalar query, which is a SELECT query which returns a single value
containingTransaction
Type: SD.LLBLGen.Pro.ORMSupportClassesITransaction
A containing transaction if caller is added to a transaction, or null of not.
cancellationToken
Type: System.ThreadingCancellationToken
The cancellation token

Return Value

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