Class ColumnMapping
- Namespace
- Dynamicweb.DataIntegration.Integration
- Assembly
- Dynamicweb.DataIntegration.dll
Mapping shows which column from the source goes to which column in the destination.
public class ColumnMapping
- Inheritance
-
ColumnMapping
- Inherited Members
Constructors
ColumnMapping()
protected ColumnMapping()
ColumnMapping(Column, Column, int, bool)
Initializes a new instance of the ColumnMapping class.
public ColumnMapping(Column sourceColumn, Column destinationColumn, int id, bool iskey = false)
Parameters
sourceColumn
ColumnThe source column.
destinationColumn
ColumnThe destination column.
id
intThe id.
iskey
boolif set to
true
[iskey].
ColumnMapping(Column, Column, int, bool, bool)
public ColumnMapping(Column sourceColumn, Column destinationColumn, int id, bool iskey, bool useCodeExtension)
Parameters
ColumnMapping(XmlNode, ISource, IDestination, Table, Table, int)
Initializes a new instance of the ColumnMapping class from an XML node. This constructor parses the output created by the method saveAsXML()
public ColumnMapping(XmlNode xmlNode, ISource source, IDestination destination, Table sourceTable, Table destinationTable, int id)
Parameters
xmlNode
XmlNodeThe XML node.
source
ISourceThe source.
destination
IDestinationThe destination.
sourceTable
TableThe source table.
destinationTable
TableThe destination table.
id
intThe id.
Fields
ScriptType
Defines if scripting for this mapping is static, append, prepend, or none.
public ScriptType ScriptType
Field Value
ScriptValue
defines the value to be added if ScriptType is anything other than "none".
public string ScriptValue
Field Value
ScriptValueForInsert
defines whether to use Script value only on insert new rows and skip on update
public bool ScriptValueForInsert
Field Value
Properties
Active
Gets or sets a value indicating whether this ColumnMapping is active.
public virtual bool Active { get; set; }
Property Value
- bool
true
if active; otherwise,false
.
Comment
public string Comment { get; set; }
Property Value
DestinationColumn
Gets or sets the destination column.
public virtual Column DestinationColumn { get; set; }
Property Value
- Column
The destination column.
FormatCulture
public string FormatCulture { get; set; }
Property Value
HasScriptWithValue
public bool HasScriptWithValue { get; }
Property Value
IsKey
Gets or sets a value indicating whether this column mapping is a primary key.
public virtual bool IsKey { get; set; }
Property Value
- bool
true
if this column mapping is key; otherwise,false
.
Mapping
public Mapping Mapping { get; }
Property Value
NullEmptyActionType
Null or empty source column value handling type
public NullEmptyActionType NullEmptyActionType { get; set; }
Property Value
NullEmptyActionValue
The value to use instead of the null or empty source column value
public string NullEmptyActionValue { get; set; }
Property Value
OriginalDestinationColumnName
The is used to store the original destination column name fetched from the job file when the destination table does not exists
public string OriginalDestinationColumnName { get; set; }
Property Value
OriginalSourceColumnName
The is used to store the original source column name fetched from the job file when the source table does not exists
public string OriginalSourceColumnName { get; set; }
Property Value
Sort
public int Sort { get; set; }
Property Value
SourceColumn
Gets or sets the source column.
public virtual Column SourceColumn { get; set; }
Property Value
- Column
The source column.
UseCodeExtension
public bool UseCodeExtension { get; set; }
Property Value
Methods
ConvertInputValueToOutputValue(object)
public object ConvertInputValueToOutputValue(object inputObject)
Parameters
inputObject
object
Returns
GetId()
Gets the id of the mapping.
public int GetId()
Returns
GetScriptValue()
public string GetScriptValue()