Class MappingExtensions
This is an extension implementation of the most common methods on the Mapping class.
Inheritance
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public static class MappingExtensions
Methods
| Improve this DocAdd(ICollection<Mapping>, Int32, Int32)
Creates a new Mapping using ordinals to specify both sourceIndex
and destinationIndex
columns/fields/items which is added to the specified collection
of mappings.
Declaration
public static void Add(this ICollection<Mapping> collection, int sourceIndex, int destinationIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ICollection<Mapping> | collection | A collection of Mapping elements. |
System.Int32 | sourceIndex | The ordinal position of the source column/field/item within the data source. |
System.Int32 | destinationIndex | The ordinal position of the destination column/field/item within the data destination. |
Add(ICollection<Mapping>, Int32, String)
Creates a new Mapping using an ordinal for the sourceIndex
and a column/field/item name to describe the destination
which is added to the specified collection
of mappings.
Declaration
public static void Add(this ICollection<Mapping> collection, int sourceIndex, string destination)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ICollection<Mapping> | collection | A collection of Mapping elements. |
System.Int32 | sourceIndex | The ordinal position of the source column/field/item within the data source. |
System.String | destination | The name of the destination column/field/item within the data destination. |
Add(ICollection<Mapping>, String, Int32)
Creates a new Mapping using a column/field/item name to describe the source
and an ordinal to specify the destinationIndex
which is added to the specified collection
of mappings.
Declaration
public static void Add(this ICollection<Mapping> collection, string source, int destinationIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ICollection<Mapping> | collection | A collection of Mapping elements. |
System.String | source | The name of the column/field/item within the data source. |
System.Int32 | destinationIndex | The ordinal position of the destination column/field/item within the data destination. |
Add(ICollection<Mapping>, String, String)
Creates a new Mapping using column/field/item names to refer to a source
and a destination
which is added to the specified collection
of mappings.
Declaration
public static void Add(this ICollection<Mapping> collection, string source, string destination)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ICollection<Mapping> | collection | A collection of Mapping elements. |
System.String | source | The name of the column/field/item within the data source. |
System.String | destination | The name of the destination column/field/item within the data destination. |