LinkMenuExpand(external link)DocumentSearchCopyCopied

MySqlConnection.BeginDbTransactionAsync method

Begins a database transaction asynchronously.

protected override ValueTask<DbTransaction> BeginDbTransactionAsync(IsolationLevel isolationLevel, 
    CancellationToken cancellationToken)
parameterdescription
isolationLevelThe IsolationLevel for the transaction.
cancellationTokenA token to cancel the asynchronous operation.

Return Value

A ValueTask representing the new database transaction.

See Also