MySqlConnector


MySqlDataSource class

MySqlDataSource implements a MySQL data source which can be used to obtain open connections, and against which commands can be executed directly.

public sealed class MySqlDataSource : DbDataSource

Public Members

namedescription
MySqlDataSource(…)Initializes a new instance of the MySqlDataSource class.
override ConnectionString { get; }Gets the connection string of the database represented by this MySqlDataSource.
CreateConnection()Creates a new MySqlConnection that can connect to the database represented by this MySqlDataSource.
OpenConnection()Returns a new, open MySqlConnection to the database represented by this MySqlDataSource.
OpenConnectionAsync(…)Asynchronously returns a new, open MySqlConnection to the database represented by this MySqlDataSource.

Protected Members

namedescription
override CreateDbConnection()
override Dispose(…)
override DisposeAsyncCore()

See Also