Class MappingExtensions
- Namespace
- Cuemon.Extensions
- Assembly
- Cuemon.Extensions.Core.dll
Extension methods for the Mapping class.
public static class MappingExtensions
- Inheritance
-
ObjectMappingExtensions
Methods
AddMapping(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.
public static void AddMapping(this ICollection<Mapping> collection, int sourceIndex, int destinationIndex)
Parameters
collection
ICollection<Mapping>A collection of Mapping elements.
sourceIndex
Int32The ordinal position of the source column/field/item within the data source.
destinationIndex
Int32The ordinal position of the destination column/field/item within the data destination.
AddMapping(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.
public static void AddMapping(this ICollection<Mapping> collection, int sourceIndex, string destination)
Parameters
collection
ICollection<Mapping>A collection of Mapping elements.
sourceIndex
Int32The ordinal position of the source column/field/item within the data source.
destination
StringThe name of the destination column/field/item within the data destination.
AddMapping(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.
public static void AddMapping(this ICollection<Mapping> collection, string source, int destinationIndex)
Parameters
collection
ICollection<Mapping>A collection of Mapping elements.
source
StringThe name of the column/field/item within the data source.
destinationIndex
Int32The ordinal position of the destination column/field/item within the data destination.
AddMapping(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.
public static void AddMapping(this ICollection<Mapping> collection, string source, string destination)