Table of Contents

Class ImportConfig.ImportConfigMappings

Namespace
YndigoBlue.Velocity.Model
Assembly
YndigoBlue.Velocity.dll

Defines the mapping between CSV column headers and database column names, along with the data type for each mapped column.

public class ImportConfig.ImportConfigMappings
Inheritance
ImportConfig.ImportConfigMappings

Properties

Columns

Gets the ordered list of database column names for all configured mappings.

HeaderTypeMapping

Gets a read-only dictionary mapping CSV header names to their corresponding CLR types.

Headers

Gets the ordered list of CSV header names for all configured mappings.

Methods

AddColumn(Column)

Adds a mapping for a Column, using the column's own name as both the CSV header and the database column name.

AddMapping(string, string, DataType)

Adds a mapping from a CSV header to a database column with the specified data type.

Clear()

Removes all column mappings from this configuration.

ColumnExists(string)

Determines whether a mapping exists that targets the specified database column name.

GetColumn(string)

Gets the database column name that the specified CSV header is mapped to.

GetColumnType(string)

Gets the CLR Type associated with the database column that the specified CSV header is mapped to.

GetDataType(string)

Gets the DataType of the database column that the specified CSV header is mapped to.

HeaderExists(string)

Determines whether a mapping exists for the specified CSV header name.

RemoveMapping(string)

Removes the mapping for the specified CSV header name.

ToString()

Returns a human-readable listing of all header-to-column mappings in this configuration.