Class AdbMySqlClientTypeService
Gets and sets types and values on database parameters for a MySqlConnector MySQL™ or MariaDB™ provider.
This class is immutable. This avoids threading issues, since an instance is often accessed by multiple threads. Any user custom provider services should also be immutable for the same reason.
Implements
Namespace: actionETL.Adb.MySqlClientExternal
Assembly: actionETL.dll
Syntax
public sealed class AdbMySqlClientTypeService : IAdbTypeService
Methods
Get()
Gets a singleton instance of AdbMySqlClientTypeService, which is used when instantiating a new AdbProvider for accessing a MySQL™ or MariaDB™ data source.
Declaration
public static IAdbTypeService Get()
Returns
| Type | Description |
|---|---|
| IAdbTypeService |
GetProviderType(DbParameter)
Gets the provider-specific MySqlParameter.MySqlDbType enumeration value.
Declaration
public object GetProviderType(DbParameter dbParameter)
Parameters
| Type | Name | Description |
|---|---|---|
| DbParameter | dbParameter | The database parameter, which must be of type
MySql.Data.MySqlClient |
Returns
| Type | Description |
|---|---|
| Object |
|
Exceptions
| Type | Condition |
|---|---|
| ArgumentException |
|
| ArgumentNullException |
|
GetProviderValue(DbParameter)
Gets the provider-specific MySqlParameter.Value value.
Declaration
public object GetProviderValue(DbParameter dbParameter)
Parameters
| Type | Name | Description |
|---|---|---|
| DbParameter | dbParameter | The database parameter, which must be of type
MySql.Data.MySqlClient |
Returns
| Type | Description |
|---|---|
| Object |
|
Exceptions
| Type | Condition |
|---|---|
| ArgumentException |
|
| ArgumentNullException |
|
SetProviderType(DbParameter, Object)
Sets the provider-specific MySqlParameter.MySqlDbType enumeration value.
Declaration
public void SetProviderType(DbParameter dbParameter, object providerTypeEnum)
Parameters
| Type | Name | Description |
|---|---|---|
| DbParameter | dbParameter | The database parameter, which must be of type
MySql.Data.MySqlClient |
| Object | providerTypeEnum |
|
Exceptions
| Type | Condition |
|---|---|
| ArgumentException |
|
| ArgumentNullException |
|
SetProviderValue(DbParameter, Object)
Sets the provider-specific MySqlParameter.Value value.
Declaration
public void SetProviderValue(DbParameter dbParameter, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| DbParameter | dbParameter | The database parameter, which must be of type
MySql.Data.MySqlClient |
| Object | value |
|
Exceptions
| Type | Condition |
|---|---|
| ArgumentException |
|
| ArgumentNullException |
|