Skip to content

ExecuteAsync Method ​

Definition ​

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Overloads ​

NameDescription
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 ​

NameDescription
cancellationTokenToken used to cancel command execution.
sessionOpen 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 ​

NameDescription
cancellationTokenToken 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.