Class MySqlClientFactory
Represents a set of methods for creating instances of the MySQL client implementation of the data source classes.
Inheritance
Implements
Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data.dll
Version: 9.1.0
Syntax
public sealed class MySqlClientFactory : DbProviderFactory, IServiceProvider
Fields
Instance
Gets an instance of the MySqlClientFactory. This can be used to retrieve strongly typed data objects.
Declaration
public static MySqlClientFactory Instance
Field Value
Type | Description |
---|---|
MySqlClientFactory |
Methods
CreateCommand()
Returns a strongly typed System.Data.Common.DbCommand instance.
Declaration
public override DbCommand CreateCommand()
Returns
Type | Description |
---|---|
System.Data.Common.DbCommand | A new strongly typed instance of DbCommand. |
Overrides
CreateCommandBuilder()
Returns a strongly typed System.Data.Common.DbCommandBuilder instance.
Declaration
public override DbCommandBuilder CreateCommandBuilder()
Returns
Type | Description |
---|---|
System.Data.Common.DbCommandBuilder | A new strongly typed instance of DbCommandBuilder. |
Overrides
CreateConnection()
Returns a strongly typed System.Data.Common.DbConnection instance.
Declaration
public override DbConnection CreateConnection()
Returns
Type | Description |
---|---|
System.Data.Common.DbConnection | A new strongly typed instance of DbConnection. |
Overrides
CreateConnectionStringBuilder()
Returns a strongly typed System.Data.Common.DbConnectionStringBuilder instance.
Declaration
public override DbConnectionStringBuilder CreateConnectionStringBuilder()
Returns
Type | Description |
---|---|
System.Data.Common.DbConnectionStringBuilder | A new strongly typed instance of DbConnectionStringBuilder. |
Overrides
CreateDataAdapter()
Returns a strongly typed System.Data.Common.DbDataAdapter instance.
Declaration
public override DbDataAdapter CreateDataAdapter()
Returns
Type | Description |
---|---|
System.Data.Common.DbDataAdapter | A new strongly typed instance of DbDataAdapter. |
Overrides
CreateParameter()
Returns a strongly typed System.Data.Common.DbParameter instance.
Declaration
public override DbParameter CreateParameter()
Returns
Type | Description |
---|---|
System.Data.Common.DbParameter | A new strongly typed instance of DbParameter. |
Overrides
Explicit Interface Implementations
IServiceProvider.GetService(Type)
Declaration
object IServiceProvider.GetService(Type serviceType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | serviceType |
Returns
Type | Description |
---|---|
System.Object |