Table of Contents

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

header string

The CSV column header name.

columnName string

The target database column name.

columnType DataType

The DataType of the target column, used to convert the CSV string value.

Exceptions

Exception

Thrown when columnType is not a valid importable data type (e.g. String, Query, Guid, Unsupported).