LinkMenuExpand(external link)DocumentSearchCopyCopied

MySqlDataSource class

MySqlDataSource implements a MySQL data source which can be used to obtain open connections.

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.
Password { set; }Sets the password that will be used by the next MySqlConnection created from 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