London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Class VariationMappingMetaClass

Inheritance
System.Object
VariationMappingMetaClass
Namespace: Mediachase.Commerce.Catalog.CSVImport
Assembly: Mediachase.Commerce.dll
Version: 13.30.0
Syntax
public class VariationMappingMetaClass : MappingMetaClass

Constructors

VariationMappingMetaClass(IWarehouseRepository, IInventoryService, MetaDataContext, Int32)

Declaration
public VariationMappingMetaClass(IWarehouseRepository warehouseRepository, IInventoryService inventoryService, MetaDataContext metaDataContext, int catalogId)
Parameters
Type Name Description
IWarehouseRepository warehouseRepository
IInventoryService inventoryService
MetaDataContext metaDataContext
System.Int32 catalogId

Methods

ConvertToDictionary(Object, MetaDataType, String, Int32, out MDPImportWarning[])

Converts to dictionary.

Declaration
protected override object ConvertToDictionary(object value, MetaDataType DestType, string DestFieldName, int RowIndex, out MDPImportWarning[] warnings)
Parameters
Type Name Description
System.Object value

The value.

MetaDataType DestType

Type of the dest.

System.String DestFieldName

Name of the dest field.

System.Int32 RowIndex

Index of the row.

MDPImportWarning[] warnings

The warnings.

Returns
Type Description
System.Object
Overrides

ConvertToFile(Object, MetaDataType, String, Int32, out MDPImportWarning[])

Converts to file.

Declaration
protected override object ConvertToFile(object value, MetaDataType Dest, string DestFieldName, int RowIndex, out MDPImportWarning[] warnings)
Parameters
Type Name Description
System.Object value

The value.

MetaDataType Dest

The dest.

System.String DestFieldName

Name of the dest field.

System.Int32 RowIndex

Index of the row.

MDPImportWarning[] warnings

The warnings.

Returns
Type Description
System.Object
Overrides

CreateSystemRow(FillDataMode, Int32, ArrayList, Object[])

Creates the system row.

Declaration
protected override int CreateSystemRow(FillDataMode mode, int rowIndex, ArrayList warningList, params object[] item)
Parameters
Type Name Description
FillDataMode mode

The mode.

System.Int32 rowIndex

Index of the row.

System.Collections.ArrayList warningList

The warning list.

System.Object[] item

The item.

Returns
Type Description
System.Int32

Returns the CatalogEntryId of the updated variation. If the entry is deleted zero is returned.

Overrides

FillSystemColumnInfo(ArrayList)

Fills the system column info.

Declaration
protected override void FillSystemColumnInfo(ArrayList array)
Parameters
Type Name Description
System.Collections.ArrayList array

The array.

Overrides

FillUserColumnInfo(ArrayList)

Declaration
protected override void FillUserColumnInfo(ArrayList array)
Parameters
Type Name Description
System.Collections.ArrayList array
Overrides

Validate(Rule, DataTable)

Declaration
public override void Validate(Rule Mapping, DataTable RawData)
Parameters
Type Name Description
Rule Mapping
System.Data.DataTable RawData
Overrides