MySqlDataSource.CreateConnection method
Creates a new MySqlConnection
that can connect to the database represented by this MySqlDataSource
.
public MySqlConnection CreateConnection()
Remarks
The connection must be opened before it can be used.
It is the responsibility of the caller to properly dispose the connection returned by this method. Failure to do so may result in a connection leak.
See Also
- class MySqlConnection
- class MySqlDataSource
- namespace MySqlConnector
- assembly MySqlConnector