IActionQueryExecuteAsync Method |
Async variant of
Execute.
Executes the query contained by the IQuery instance.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.12.0.0 (5.12.0)
SyntaxTask<int> ExecuteAsync(
CancellationToken cancellationToken
)
Function ExecuteAsync (
cancellationToken As CancellationToken
) As Task(Of Integer)
Parameters
- cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskInt32
The number of rows affected (if applicable), otherwise 0.
ExceptionsException | Condition |
---|
InvalidOperationException | When there is no command object inside the query object,
or no connection object inside the query object |
ORMQueryExecutionException | when an exception was caught during query execution |
See Also