IDataTypeConverter

Interface IDataTypeConverter

Describe methods that allows to intercept the CREATE TABLE sql generation in a CreateTableTask. It will convert the data type that is defined in a TableColumn into a custom database specific type.

Namespace: ETLBox
Assembly: ETLBox.dll
Syntax
    public interface IDataTypeConverter

Methods

TryConvertDbDataType(string, ConnectionType)

Tries to convert the data type from the TableColumn into a database specific type.

Declaration
    string TryConvertDbDataType(string dataTypeName, ConnectionType connectionType)
Parameters
TypeNameDescription
stringdataTypeName

The specific type name from a table column

ConnectionTypeconnectionType

The database connection type

Returns
TypeDescription
string

The type used in the CREATE TABLE statement