Table of Contents

ExecuteAsync Method

Definition

Namespace
Cuemon.Data
Assemblies
Cuemon.Data.dll
Source
src/Cuemon.Data/DataManager.cs

ExecuteAsync(DataStatement, CancellationToken)

Asynchronously executes the command statement and returns the number of rows affected.

public Task<int> ExecuteAsync(DataStatement statement, CancellationToken ct = default)

Parameters

statement DataStatement

The command statement to execute.

ct CancellationToken

A token to cancel the asynchronous operation.

Returns

Task<int>

A task that represents the asynchronous operation. The task result contains the number of rows affected.