Class MappingMetaClass
Inheritance
System.Object
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()
Assembly: Mediachase.MetaDataPlus.dll
Version: 10.8.0
public abstract class MappingMetaClass
Constructors
MappingMetaClass(MetaDataContext)
Declaration
protected MappingMetaClass(MetaDataContext context)
Parameters
Fields
Declaration
protected string InnerMetaClassName
Field Value
Type |
Description |
System.String |
|
Properties
Declaration
public virtual ColumnInfo[] ColumnInfos { get; }
Property Value
Context
Declaration
public MetaDataContext Context { get; }
Property Value
Declaration
public virtual ColumnInfo[] SystemColumnInfos { get; }
Property Value
Declaration
public virtual ColumnInfo[] UserColumnInfos { get; }
Property Value
Methods
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 |
|
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 |
|
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 |
|
Declaration
protected virtual object ConvertToFile(object value, MetaDataType Dest, string DestFieldName, int RowIndex, out MDPImportWarning[] warnings)
Parameters
Returns
Type |
Description |
System.Object |
|
Declaration
public virtual Rule CreateClassRule()
Returns
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 |
|
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 |
|
Declaration
protected virtual int CreateSystemRow(FillDataMode Mode, params object[] Item)
Parameters
Type |
Name |
Description |
FillDataMode |
Mode |
|
System.Object[] |
Item |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
protected virtual void CreateUserRow(MetaObject Object, Rule Mapping, params object[] Item)
Parameters
Type |
Name |
Description |
MetaObject |
Object |
|
Rule |
Mapping |
|
System.Object[] |
Item |
|
Declaration
public virtual FillResult FillData(FillDataMode Mode, DataTable RawData, Rule Mapping)
Parameters
Type |
Name |
Description |
FillDataMode |
Mode |
|
System.Data.DataTable |
RawData |
|
Rule |
Mapping |
|
Returns
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
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
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
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
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
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
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
Declaration
protected virtual void FillSystemColumnInfo(ArrayList array)
Parameters
Type |
Name |
Description |
System.Collections.ArrayList |
array |
|
Declaration
protected virtual void FillUserColumnInfo(ArrayList array)
Parameters
Type |
Name |
Description |
System.Collections.ArrayList |
array |
|
Declaration
public ColumnInfo GetColumnInfo(string Name)
Parameters
Type |
Name |
Description |
System.String |
Name |
|
Returns
Declaration
public RowAction GetRowActionEnum(string action)
Parameters
Type |
Name |
Description |
System.String |
action |
|
Returns
Raise updated event when metaobject updated successfully.
Declaration
protected virtual void RaiseObjectUpdatedEvent(int objectId)
Parameters
Type |
Name |
Description |
System.Int32 |
objectId |
The object id.
|
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.
|
Declaration
public virtual void Validate(Rule Mapping, DataTable RawData)
Parameters
Type |
Name |
Description |
Rule |
Mapping |
|
System.Data.DataTable |
RawData |
|
Events
Declaration
public event ConvertToDictionaryEventHandle OnConvertToDictionary
Event Type
Declaration
public event ConvertToFileEventHandle OnConvertToFile
Event Type