Table of Contents

Class MySqlProviderAdapter

Namespace
LinqToDB.Internal.DataProvider.MySql
Assembly
linq2db.dll
public abstract class MySqlProviderAdapter : IDynamicProviderAdapter
Inheritance
object
MySqlProviderAdapter
Implements
Extension Methods

Fields

MySqlConnectorAssemblyName

public const string MySqlConnectorAssemblyName = "MySqlConnector"

Field Value

string

MySqlConnectorNamespace

public const string MySqlConnectorNamespace = "MySqlConnector"

Field Value

string

MySqlConnectorTypesNamespace

public const string MySqlConnectorTypesNamespace = "MySqlConnector"

Field Value

string

MySqlDataAssemblyName

public const string MySqlDataAssemblyName = "MySql.Data"

Field Value

string

MySqlDataClientNamespace

public const string MySqlDataClientNamespace = "MySql.Data.MySqlClient"

Field Value

string

MySqlDataTypesNamespace

public const string MySqlDataTypesNamespace = "MySql.Data.Types"

Field Value

string

OldMySqlConnectorNamespace

public const string OldMySqlConnectorNamespace = "MySql.Data.MySqlClient"

Field Value

string

OldMySqlConnectorTypesNamespace

public const string OldMySqlConnectorTypesNamespace = "MySql.Data.Types"

Field Value

string

Properties

BulkCopy

public MySqlProviderAdapter.BulkCopyAdapter? BulkCopy { get; protected set; }

Property Value

MySqlProviderAdapter.BulkCopyAdapter

CommandType

Gets type, that implements DbCommand for current ADO.NET provider.

public Type CommandType { get; protected set; }

Property Value

Type

ConnectionType

Gets type, that implements DbConnection for current ADO.NET provider.

public Type ConnectionType { get; protected set; }

Property Value

Type

DataReaderType

Gets type, that implements DbDataReader for current ADO.NET provider.

public Type DataReaderType { get; protected set; }

Property Value

Type

GetDateOnlyMethodName

public string? GetDateOnlyMethodName { get; protected set; }

Property Value

string

GetDateTimeOffsetMethodName

MySqlConnector-only.

public string? GetDateTimeOffsetMethodName { get; protected set; }

Property Value

string

GetDbType

Returns object, because both providers use different enums and we anyway don't need typed value.

public Func<DbParameter, object> GetDbType { get; protected set; }

Property Value

Func<DbParameter, object>

GetMySqlDateTimeMethodName

public string GetMySqlDateTimeMethodName { get; protected set; }

Property Value

string

GetMySqlDecimalMethodName

Not supported by MySqlConnector prior to 2.1.0.

public string? GetMySqlDecimalMethodName { get; protected set; }

Property Value

string

GetSByteMethodName

public string? GetSByteMethodName { get; protected set; }

Property Value

string

GetTimeOnlyMethodName

public string? GetTimeOnlyMethodName { get; protected set; }

Property Value

string

GetTimeSpanMethodName

public string? GetTimeSpanMethodName { get; protected set; }

Property Value

string

GetUInt16MethodName

public string? GetUInt16MethodName { get; protected set; }

Property Value

string

GetUInt32MethodName

public string? GetUInt32MethodName { get; protected set; }

Property Value

string

GetUInt64MethodName

public string? GetUInt64MethodName { get; protected set; }

Property Value

string

IsDateOnlySupported

public bool IsDateOnlySupported { get; protected set; }

Property Value

bool

IsPackageProceduresSupported

public abstract bool IsPackageProceduresSupported { get; }

Property Value

bool

MappingSchema

public MappingSchema MappingSchema { get; protected set; }

Property Value

MappingSchema

MySqlDateTimeType

public Type MySqlDateTimeType { get; protected set; }

Property Value

Type

MySqlDecimalGetter

Not needed for MySqlConnector as it supports MySqlDecimal parameters.

public Func<object, string>? MySqlDecimalGetter { get; protected set; }

Property Value

Func<object, string>

MySqlDecimalType

Not supported by MySqlConnector prior to 2.1.0.

public Type? MySqlDecimalType { get; protected set; }

Property Value

Type

MySqlGeometryType

public Type MySqlGeometryType { get; protected set; }

Property Value

Type

ParameterType

Gets type, that implements DbParameter for current ADO.NET provider.

public Type ParameterType { get; protected set; }

Property Value

Type

ProviderType

public MySqlProvider ProviderType { get; protected set; }

Property Value

MySqlProvider

ProviderTypesNamespace

public string ProviderTypesNamespace { get; protected set; }

Property Value

string

SetDbType

public Action<DbParameter, object> SetDbType { get; protected set; }

Property Value

Action<DbParameter, object>

TransactionType

Gets type, that implements DbTransaction for current ADO.NET provider. For providers/databases without transaction support contains null.

public Type TransactionType { get; protected set; }

Property Value

Type

Methods

CreateConnection(string)

Creates instance of database provider connection class using provided connection string.

public DbConnection CreateConnection(string connectionString)

Parameters

connectionString string

Connection string to use with created connection.

Returns

DbConnection

Connection instance.

GetInstance(MySqlProvider)

public static MySqlProviderAdapter GetInstance(MySqlProvider provider)

Parameters

provider MySqlProvider

Returns

MySqlProviderAdapter