MySQL Connector/Net
MySqlConnection Methods |
The MySqlConnection type exposes the following members.

Name | Description | |
---|---|---|
![]() |
BeginDbTransaction | (Overrides DbConnectionBeginDbTransaction(IsolationLevel).) |
![]() ![]() |
BeginTransaction |
Begins a database transaction.
|
![]() ![]() |
BeginTransaction(IsolationLevel) |
Begins a database transaction with the specified isolation level.
|
![]() |
BeginTransactionAsync |
Async version of BeginTransaction
|
![]() |
BeginTransactionAsync(IsolationLevel) |
Async version of BeginTransaction
|
![]() |
BeginTransactionAsync(CancellationToken) | |
![]() |
BeginTransactionAsync(IsolationLevel, CancellationToken) | |
![]() |
CancelQuery | |
![]() ![]() |
ChangeDatabase | Changes the current database for an open MySqlConnection. (Overrides DbConnectionChangeDatabase(String).) |
![]() |
ChangeDataBaseAsync(String) | |
![]() |
ChangeDataBaseAsync(String, CancellationToken) |
Async version of ChangeDataBase
|
![]() ![]() |
ClearAllPools |
Clears all connection pools.
|
![]() |
ClearAllPoolsAsync |
Async version of ClearAllPools
|
![]() |
ClearAllPoolsAsync(CancellationToken) | |
![]() ![]() |
ClearPool |
Empties the connection pool associated with the specified connection.
|
![]() |
ClearPoolAsync(MySqlConnection) |
Async version of ClearPool
|
![]() |
ClearPoolAsync(MySqlConnection, CancellationToken) | |
![]() |
Clone |
Creates a new MySqlConnection object with the exact same ConnectionString value
|
![]() ![]() |
Close | Closes the connection to the database. This is the preferred method of closing any open connection. (Overrides DbConnectionClose.) |
![]() |
CloseAsync |
Async version of Close
|
![]() |
CloseAsync(CancellationToken) | |
![]() |
CreateCommand |
Creates and returns a MySqlCommand object associated with the MySqlConnection.
|
![]() |
CreateDbCommand | (Overrides DbConnectionCreateDbCommand.) |
![]() |
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
![]() |
Dispose | |
![]() |
Dispose(Boolean) | (Overrides ComponentDispose(Boolean).) |
![]() |
EnlistTransaction |
Enlists in the specified transaction.
(Overrides DbConnectionEnlistTransaction(Transaction).) |
![]() |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() |
Finalize | (Overrides ComponentFinalize.) |
![]() |
GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() |
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() |
GetSchema |
Returns schema information for the data source of this DbConnection.
(Overrides DbConnectionGetSchema.) |
![]() |
GetSchema(String) |
Returns schema information for the data source of this
DbConnection using the specified string for the schema name.
(Overrides DbConnectionGetSchema(String).) |
![]() |
GetSchema(String, String) |
Returns schema information for the data source of this DbConnection
using the specified string for the schema name and the specified string array
for the restriction values.
(Overrides DbConnectionGetSchema(String, String).) |
![]() |
GetSchemaCollection | |
![]() |
GetSchemaCollectionAsync(String, String) |
Async version of GetSchemaCollection
|
![]() |
GetSchemaCollectionAsync(String, String, CancellationToken) | |
![]() |
GetService | (Inherited from Component.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
![]() |
OnStateChange | (Inherited from DbConnection.) |
![]() ![]() |
Open | Opens a database connection with the property settings specified by the ConnectionString. (Overrides DbConnectionOpen.) |
![]() |
OpenAsync | (Inherited from DbConnection.) |
![]() |
OpenAsync(CancellationToken) | (Inherited from DbConnection.) |
![]() |
Ping |
Ping
|
![]() |
ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.) |
