Method AddMapping
- Namespace
- YndigoBlue.Velocity.Model
- Assembly
- YndigoBlue.Velocity.dll
AddMapping(string, string, DataType)
Adds a mapping from a CSV header to a database column with the specified data type.
public void AddMapping(string header, string columnName, DataType columnType)
Parameters
headerstringThe CSV column header name.
columnNamestringThe target database column name.
columnTypeDataTypeThe DataType of the target column, used to convert the CSV string value.
Exceptions
- Exception
Thrown when
columnTypeis not a valid importable data type (e.g. String, Query, Guid, Unsupported).