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
Type | Name | Description |
---|---|---|
string | dataTypeName | The specific type name from a table column |
ConnectionType | connectionType | The database connection type |
Returns
Type | Description |
---|---|
string | The type used in the CREATE TABLE statement |