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
sourceColumnColumnThe source column.
destinationColumnColumnThe destination column.
idintThe id.
iskeyboolif 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
xmlNodeXmlNodeThe XML node.
sourceISourceThe source.
destinationIDestinationThe destination.
sourceTableTableThe source table.
destinationTableTableThe destination table.
idintThe id.
Fields
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
trueif 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
IsKey
Gets or sets a value indicating whether this column mapping is a primary key.
public virtual bool IsKey { get; set; }
Property Value
- bool
trueif 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
ScriptTypeProvider
public ScriptTypeProvider? ScriptTypeProvider { 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.
Methods
ConvertInputValueToOutputValue(object)
public object? ConvertInputValueToOutputValue(object inputObject)
Parameters
inputObjectobject
Returns
GetCulture()
public CultureInfo GetCulture()
Returns
GetId()
Gets the id of the mapping.
public int GetId()
Returns
GetInputToDestinationTypeOutputFormat(object, Column?, Column?, CultureInfo?)
public static object GetInputToDestinationTypeOutputFormat(object inputObject, Column? sourceColumn, Column? destinationColumn, CultureInfo? culture)
Parameters
inputObjectobjectsourceColumnColumndestinationColumnColumncultureCultureInfo
Returns
GetScriptValue()
public string? GetScriptValue()
Returns
SetScriptType(ScriptTypeProvider?)
public void SetScriptType(ScriptTypeProvider? scriptType)
Parameters
scriptTypeScriptTypeProvider