Search Results for

    Show / Hide Table of Contents

    Class AdbOdbcTypeService

    Gets and sets types and values on database parameters for a System.Data.Odbc ODBC provider, such as AdbOdbcProvider.

    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.

    Inheritance
    Object
    AdbOdbcTypeService
    Implements
    IAdbTypeService
    Namespace: actionETL.Adb.OdbcExternal
    Assembly: actionETL.dll
    Syntax
    public sealed class AdbOdbcTypeService : IAdbTypeService

    Methods

    Get()

    Gets a singleton instance of AdbOdbcTypeService, which is used when instantiating a new AdbProvider for accessing an ODBC data source.

    Declaration
    public static IAdbTypeService Get()
    Returns
    Type Description
    IAdbTypeService

    GetProviderType(DbParameter)

    Gets the provider-specific OdbcParameter.OdbcType enumeration value.

    Declaration
    public object GetProviderType(DbParameter dbParameter)
    Parameters
    Type Name Description
    DbParameter dbParameter

    The database parameter, which must be of type OdbcParameter.

    Returns
    Type Description
    Object

    OdbcParameter.OdbcType enumeration value, as an object.

    Exceptions
    Type Condition
    ArgumentException

    Parameter is not a OdbcParameter.

    ArgumentNullException

    dbParameter

    GetProviderValue(DbParameter)

    Gets the provider-specific OdbcParameter.Value value.

    Declaration
    public object GetProviderValue(DbParameter dbParameter)
    Parameters
    Type Name Description
    DbParameter dbParameter

    The database parameter, which must be of type OdbcParameter.

    Returns
    Type Description
    Object

    OdbcParameter.Value value, as an object.

    Exceptions
    Type Condition
    ArgumentException

    dbParameter is not a OdbcParameter.

    ArgumentNullException

    dbParameter

    SetProviderType(DbParameter, Object)

    Sets the provider-specific OdbcParameter.OdbcType enumeration value.

    Declaration
    public void SetProviderType(DbParameter dbParameter, object providerTypeEnum)
    Parameters
    Type Name Description
    DbParameter dbParameter

    The database parameter, which must be of type OdbcParameter.

    Object providerTypeEnum

    OdbcParameter.OdbcType enumeration value, as an object.

    Exceptions
    Type Condition
    ArgumentException
    • dbParameter is not a OdbcParameter.
    • providerTypeEnum is not a OdbcType.
    ArgumentNullException
    • dbParameter
    • providerTypeEnum

    SetProviderValue(DbParameter, Object)

    Sets the provider-specific OdbcParameter.Value value.

    Declaration
    public void SetProviderValue(DbParameter dbParameter, object value)
    Parameters
    Type Name Description
    DbParameter dbParameter

    The database parameter, which must be of type OdbcParameter.

    Object value

    OdbcParameter.Value value, as an object.

    Exceptions
    Type Condition
    ArgumentException

    dbParameter is not a OdbcParameter.

    ArgumentNullException

    dbParameter

    Implements

    IAdbTypeService

    See Also

    IAdbTypeService
    AdbOdbcProvider
    In This Article
    Back to top Copyright © 2023 Envobi Ltd