MySqlConnector


MySqlConnection.BeginTransactionAsync method (1 of 3)

Begins a database transaction asynchronously.

public ValueTask<MySqlTransaction> BeginTransactionAsync(
    CancellationToken cancellationToken = default(CancellationToken))
parameterdescription
cancellationTokenA token to cancel the asynchronous operation.

Return Value

A Task representing the new database transaction.

Remarks

Transactions may not be nested.

See Also


MySqlConnection.BeginTransactionAsync method (2 of 3)

Begins a database transaction asynchronously.

public ValueTask<MySqlTransaction> BeginTransactionAsync(IsolationLevel isolationLevel, 
    CancellationToken cancellationToken = default(CancellationToken))
parameterdescription
isolationLevelThe IsolationLevel for the transaction.
cancellationTokenA token to cancel the asynchronous operation.

Return Value

A Task representing the new database transaction.

Remarks

Transactions may not be nested.

See Also


MySqlConnection.BeginTransactionAsync method (3 of 3)

Begins a database transaction asynchronously.

public ValueTask<MySqlTransaction> BeginTransactionAsync(IsolationLevel isolationLevel, 
    bool isReadOnly, CancellationToken cancellationToken = default(CancellationToken))
parameterdescription
isolationLevelThe IsolationLevel for the transaction.
isReadOnlyIf true, changes to tables used in the transaction are prohibited; otherwise, they are permitted.
cancellationTokenA token to cancel the asynchronous operation.

Return Value

A Task representing the new database transaction.

Remarks

Transactions may not be nested.

See Also