Appearance
ExecuteAsync Method
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Overloads
| Name | Description |
|---|---|
Task<int> ExecuteAsync(CancellationToken cancellationToken = null) | Executes the UPDATE statement using the session bound to this builder. |
Task<int> ExecuteAsync(IDatabaseSession session, CancellationToken cancellationToken = null) | Executes the UPDATE using the specified session. |
Task<int> ExecuteAsync(IDatabaseSession session, CancellationToken cancellationToken = null)
csharp
Task<int> ExecuteAsync(IDatabaseSession session, CancellationToken cancellationToken = null)Executes the UPDATE using the specified session.
Parameters
| Name | Description |
|---|---|
cancellationToken | Token used to cancel command execution. |
session | Open database session to execute against. |
Returns
The number of affected rows.
Task<int> ExecuteAsync(CancellationToken cancellationToken = null)
csharp
Task<int> ExecuteAsync(CancellationToken cancellationToken = null)Executes the UPDATE statement using the session bound to this builder.
Parameters
| Name | Description |
|---|---|
cancellationToken | Token used to cancel command execution. |
Returns
The number of affected rows.
Remarks
This overload requires that the builder was created with an associated IDatabaseSession. If no session is bound, use ExecuteAsync.