Class MappingMetaClass

Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.MetaDataPlus.Import
Assembly: Mediachase.MetaDataPlus.dll
Version: 10.8.0
Syntax
public abstract class MappingMetaClass

Constructors

MappingMetaClass(MetaDataContext)

Declaration
protected MappingMetaClass(MetaDataContext context)
Parameters
Type Name Description
MetaDataContext context

Fields

InnerMetaClassName

Declaration
protected string InnerMetaClassName
Field Value
Type Description
System.String

Properties

ColumnInfos

Declaration
public virtual ColumnInfo[] ColumnInfos { get; }
Property Value
Type Description
ColumnInfo[]

Context

Declaration
public MetaDataContext Context { get; }
Property Value
Type Description
MetaDataContext

SystemColumnInfos

Declaration
public virtual ColumnInfo[] SystemColumnInfos { get; }
Property Value
Type Description
ColumnInfo[]

UserColumnInfos

Declaration
public virtual ColumnInfo[] UserColumnInfos { get; }
Property Value
Type Description
ColumnInfo[]

Methods

AddSystemFieldsMapping(Rule)

Declaration
[Obsolete("This method is no longer used. It will remain at least until August 2017.")]
protected virtual void AddSystemFieldsMapping(Rule mapping)
Parameters
Type Name Description
Rule mapping

ConvertDataType(Type, MetaDataType, Object, String, Boolean, Int32, out MDPImportWarning[])

Declaration
protected virtual object ConvertDataType(Type Src, MetaDataType Dest, object value, string DestFieldName, bool allowNull, int RowIndex, out MDPImportWarning[] warnings)
Parameters
Type Name Description
System.Type Src
MetaDataType Dest
System.Object value
System.String DestFieldName
System.Boolean allowNull
System.Int32 RowIndex
MDPImportWarning[] warnings
Returns
Type Description
System.Object

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

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

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

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

CreateClassRule()

Declaration
public virtual Rule CreateClassRule()
Returns
Type Description
Rule

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

Declaration
protected virtual int CreateSystemRow(FillDataMode Mode, int RowIndex, ArrayList warningList, params object[] Item)
Parameters
Type Name Description
FillDataMode Mode
System.Int32 RowIndex
System.Collections.ArrayList warningList
System.Object[] Item
Returns
Type Description
System.Int32

CreateSystemRow(FillDataMode, Int32, Object[])

Declaration
protected virtual int CreateSystemRow(FillDataMode Mode, int RowIndex, params object[] Item)
Parameters
Type Name Description
FillDataMode Mode
System.Int32 RowIndex
System.Object[] Item
Returns
Type Description
System.Int32

CreateSystemRow(FillDataMode, Object[])

Declaration
protected virtual int CreateSystemRow(FillDataMode Mode, params object[] Item)
Parameters
Type Name Description
FillDataMode Mode
System.Object[] Item
Returns
Type Description
System.Int32

CreateUserRow(MetaObject, Rule, Object[])

Declaration
protected virtual void CreateUserRow(MetaObject Object, Rule Mapping, params object[] Item)
Parameters
Type Name Description
MetaObject Object
Rule Mapping
System.Object[] Item

FillData(FillDataMode, DataTable, Rule)

Declaration
public virtual FillResult FillData(FillDataMode Mode, DataTable RawData, Rule Mapping)
Parameters
Type Name Description
FillDataMode Mode
System.Data.DataTable RawData
Rule Mapping
Returns
Type Description
FillResult

FillData(FillDataMode, DataTable, Rule, SqlTransaction)

Declaration
public virtual FillResult FillData(FillDataMode Mode, DataTable RawData, Rule Mapping, SqlTransaction tran)
Parameters
Type Name Description
FillDataMode Mode
System.Data.DataTable RawData
Rule Mapping
System.Data.SqlClient.SqlTransaction tran
Returns
Type Description
FillResult

FillData(FillDataMode, DataTable, Rule, Int32, DateTime)

Declaration
[Obsolete("Use FillResult FillData(FillDataMode Mode, DataTable RawData, Rule Mapping, string ModifierId, DateTime Modified) instead. Will remain at least until November 2016.")]
public virtual FillResult FillData(FillDataMode Mode, DataTable RawData, Rule Mapping, int ModifierId, DateTime Modified)
Parameters
Type Name Description
FillDataMode Mode
System.Data.DataTable RawData
Rule Mapping
System.Int32 ModifierId
System.DateTime Modified
Returns
Type Description
FillResult

FillData(FillDataMode, DataTable, Rule, Int32, DateTime, SqlTransaction)

Declaration
[Obsolete("Use FillResult FillData(FillDataMode Mode, DataTable RawData, Rule Mapping, string ModifierId, DateTime Modified, System.Data.SqlClient.SqlTransaction tran) instead. Will remain at least until November 2016.")]
public virtual FillResult FillData(FillDataMode Mode, DataTable RawData, Rule Mapping, int ModifierId, DateTime Modified, SqlTransaction tran)
Parameters
Type Name Description
FillDataMode Mode
System.Data.DataTable RawData
Rule Mapping
System.Int32 ModifierId
System.DateTime Modified
System.Data.SqlClient.SqlTransaction tran
Returns
Type Description
FillResult

FillData(FillDataMode, DataTable, Rule, Int32, DateTime, Int32)

Declaration
[Obsolete("Use FillResult FillData(FillDataMode Mode, DataTable RawData, Rule Mapping, string ModifierId, DateTime Modified, int MaximalErrors) instead. Will remain at least until November 2016.")]
public virtual FillResult FillData(FillDataMode Mode, DataTable RawData, Rule Mapping, int ModifierId, DateTime Modified, int MaximalErrors)
Parameters
Type Name Description
FillDataMode Mode
System.Data.DataTable RawData
Rule Mapping
System.Int32 ModifierId
System.DateTime Modified
System.Int32 MaximalErrors
Returns
Type Description
FillResult

FillData(FillDataMode, DataTable, Rule, String, DateTime)

Declaration
public virtual FillResult FillData(FillDataMode Mode, DataTable RawData, Rule Mapping, string ModifierId, DateTime Modified)
Parameters
Type Name Description
FillDataMode Mode
System.Data.DataTable RawData
Rule Mapping
System.String ModifierId
System.DateTime Modified
Returns
Type Description
FillResult

FillData(FillDataMode, DataTable, Rule, String, DateTime, SqlTransaction)

Declaration
public virtual FillResult FillData(FillDataMode Mode, DataTable RawData, Rule Mapping, string ModifierId, DateTime Modified, SqlTransaction tran)
Parameters
Type Name Description
FillDataMode Mode
System.Data.DataTable RawData
Rule Mapping
System.String ModifierId
System.DateTime Modified
System.Data.SqlClient.SqlTransaction tran
Returns
Type Description
FillResult

FillData(FillDataMode, DataTable, Rule, String, DateTime, Int32)

Declaration
public virtual FillResult FillData(FillDataMode Mode, DataTable RawData, Rule Mapping, string ModifierId, DateTime Modified, int MaximalErrors)
Parameters
Type Name Description
FillDataMode Mode
System.Data.DataTable RawData
Rule Mapping
System.String ModifierId
System.DateTime Modified
System.Int32 MaximalErrors
Returns
Type Description
FillResult

FillSystemColumnInfo(ArrayList)

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

FillUserColumnInfo(ArrayList)

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

GetColumnInfo(String)

Declaration
public ColumnInfo GetColumnInfo(string Name)
Parameters
Type Name Description
System.String Name
Returns
Type Description
ColumnInfo

GetRowActionEnum(String)

Declaration
public RowAction GetRowActionEnum(string action)
Parameters
Type Name Description
System.String action
Returns
Type Description
RowAction

RaiseObjectUpdatedEvent(Int32)

Raise updated event when metaobject updated successfully.

Declaration
protected virtual void RaiseObjectUpdatedEvent(int objectId)
Parameters
Type Name Description
System.Int32 objectId

The object id.

SetSystemFields(Int32, MetaObject, Rule)

Set the system fields so they are available on non-master languages.

Declaration
protected virtual void SetSystemFields(int objectId, MetaObject metaObject, Rule mapping)
Parameters
Type Name Description
System.Int32 objectId

The object identifier.

MetaObject metaObject

The MetaObject.

Rule mapping

The mapping.

Validate(Rule, DataTable)

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

Events

OnConvertToDictionary

Declaration
public event ConvertToDictionaryEventHandle OnConvertToDictionary
Event Type
Type Description
ConvertToDictionaryEventHandle

OnConvertToFile

Declaration
public event ConvertToFileEventHandle OnConvertToFile
Event Type
Type Description
ConvertToFileEventHandle