MySqlConnection.BeginTransaction method (1 of 3)
Begins a database transaction.
public MySqlTransaction BeginTransaction()
Return Value
A MySqlTransaction
representing the new database transaction.
Remarks
Transactions may not be nested.
See Also
- class MySqlTransaction
- class MySqlConnection
- namespace MySqlConnector
- assembly MySqlConnector
MySqlConnection.BeginTransaction method (2 of 3)
Begins a database transaction.
public MySqlTransaction BeginTransaction(IsolationLevel isolationLevel)
parameter | description |
---|---|
isolationLevel | The IsolationLevel for the transaction. |
Return Value
A MySqlTransaction
representing the new database transaction.
Remarks
Transactions may not be nested.
See Also
- class MySqlTransaction
- class MySqlConnection
- namespace MySqlConnector
- assembly MySqlConnector
MySqlConnection.BeginTransaction method (3 of 3)
Begins a database transaction.
public MySqlTransaction BeginTransaction(IsolationLevel isolationLevel, bool isReadOnly)
parameter | description |
---|---|
isolationLevel | The IsolationLevel for the transaction. |
isReadOnly | If true , changes to tables used in the transaction are prohibited; otherwise, they are permitted. |
Return Value
A MySqlTransaction
representing the new database transaction.
Remarks
Transactions may not be nested.
See Also
- class MySqlTransaction
- class MySqlConnection
- namespace MySqlConnector
- assembly MySqlConnector