DaoBaseExecuteScalarQueryAsync Method |
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.9.0.0 (5.9.0)
Syntax public virtual Task<Object> ExecuteScalarQueryAsync(
IRetrievalQuery queryToExecute,
ITransaction containingTransaction,
CancellationToken cancellationToken
)
Public Overridable Function ExecuteScalarQueryAsync (
queryToExecute As IRetrievalQuery,
containingTransaction As ITransaction,
cancellationToken As CancellationToken
) As Task(Of Object)
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:
TaskObjectthe scalar value returned from the query.
See Also