November Happy Hour will be moved to Thursday December 5th.

Class MetaDataWrapper

Inheritance
System.Object
MetaDataWrapper
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.BusinessFoundation.Core
Assembly: Mediachase.BusinessFoundation.dll
Version: 12.17.2
Syntax
public class MetaDataWrapper

Constructors

MetaDataWrapper()

Declaration
public MetaDataWrapper()

Fields

BridgeField1Name

Declaration
public const string BridgeField1Name = "Field1"
Field Value
Type Description
System.String

BridgeField2Name

Declaration
public const string BridgeField2Name = "Field2"
Field Value
Type Description
System.String

CardFieldFriendlyName

Declaration
public const string CardFieldFriendlyName = "Card"
Field Value
Type Description
System.String

CardFieldName

Declaration
public const string CardFieldName = "Card"
Field Value
Type Description
System.String

ClassPrefix

Declaration
public const string ClassPrefix = "cls_"
Field Value
Type Description
System.String

OwnerTypeAttr

Declaration
public const string OwnerTypeAttr = "OwnerType"
Field Value
Type Description
System.String

Methods

AddClassAttribute(MetaClass, String, Object)

Declaration
public static void AddClassAttribute(MetaClass mc, string attrName, object attrValue)
Parameters
Type Name Description
MetaClass mc
System.String attrName
System.Object attrValue

CreateBackReference(MetaClass, AttributeCollection, String, String)

Declaration
public static MetaField CreateBackReference(MetaClass mc, AttributeCollection attr, string FieldName, string FieldFriendlyName)
Parameters
Type Name Description
MetaClass mc
AttributeCollection attr
System.String FieldName
System.String FieldFriendlyName
Returns
Type Description
MetaField

CreateBridgeClass(String, String, String, String, String, String, String, String, String)

Declaration
public static MetaClass CreateBridgeClass(string BridgeName, string BridgeFriendlyName, string BridgePluralName, string Class1Name, string Field1Name, string Field1FriendlyName, string Class2Name, string Field2Name, string Field2FriendlyName)
Parameters
Type Name Description
System.String BridgeName
System.String BridgeFriendlyName
System.String BridgePluralName
System.String Class1Name
System.String Field1Name
System.String Field1FriendlyName
System.String Class2Name
System.String Field2Name
System.String Field2FriendlyName
Returns
Type Description
MetaClass

CreateBridgeClass(String, String, String, String, String, String, String, String, String, String, String, String, String, String)

Declaration
public static MetaClass CreateBridgeClass(string bridgeName, string bridgeFriendlyName, string class1Name, string field1Name, string field1FriendlyName, string section1Name, string displayText1, string displayOrder1, string class2Name, string field2Name, string field2FriendlyName, string section2Name, string displayText2, string displayOrder2)
Parameters
Type Name Description
System.String bridgeName
System.String bridgeFriendlyName
System.String class1Name
System.String field1Name
System.String field1FriendlyName
System.String section1Name
System.String displayText1
System.String displayOrder1
System.String class2Name
System.String field2Name
System.String field2FriendlyName
System.String section2Name
System.String displayText2
System.String displayOrder2
Returns
Type Description
MetaClass

CreateCard(String, String, String, String)

Declaration
public static MetaClass CreateCard(string ParentClassName, string CardName, string CardFriendlyName, string CardPluralName)
Parameters
Type Name Description
System.String ParentClassName
System.String CardName
System.String CardFriendlyName
System.String CardPluralName
Returns
Type Description
MetaClass

CreateMetaClass(String, String, String, OwnerTypes, Boolean, String, String, Int32)

Declaration
public static MetaClass CreateMetaClass(string ClassName, string ClassFriendlyName, string ClassPluralName, OwnerTypes OwnerType, bool SupportsCards, string FieldName, string FieldFriendlyName, int FieldMaxLen)
Parameters
Type Name Description
System.String ClassName
System.String ClassFriendlyName
System.String ClassPluralName
OwnerTypes OwnerType
System.Boolean SupportsCards
System.String FieldName
System.String FieldFriendlyName
System.Int32 FieldMaxLen
Returns
Type Description
MetaClass

CreateMetaField(MetaClass, AttributeCollection, String, String, String, Boolean, String)

Declaration
public static MetaField CreateMetaField(MetaClass mc, AttributeCollection attr, string FieldName, string FieldFriendlyName, string TypeName, bool IsNullable, string DefaultValue)
Parameters
Type Name Description
MetaClass mc
AttributeCollection attr
System.String FieldName
System.String FieldFriendlyName
System.String TypeName
System.Boolean IsNullable
System.String DefaultValue
Returns
Type Description
MetaField

CreateReference(MetaClass, AttributeCollection, String, String, Boolean)

Declaration
public static MetaField CreateReference(MetaClass mc, AttributeCollection attr, string FieldName, string FieldFriendlyName, bool AllowNulls)
Parameters
Type Name Description
MetaClass mc
AttributeCollection attr
System.String FieldName
System.String FieldFriendlyName
System.Boolean AllowNulls
Returns
Type Description
MetaField

CreateReference(String, String, String, String, Boolean, String, String, String)

Declaration
public static MetaField CreateReference(string primaryClassName, string relatedClassName, string fieldName, string fieldFriendlyName, bool allowNulls, string sectionName, string displayText, string displayOrder)
Parameters
Type Name Description
System.String primaryClassName
System.String relatedClassName
System.String fieldName
System.String fieldFriendlyName
System.Boolean allowNulls
System.String sectionName
System.String displayText
System.String displayOrder
Returns
Type Description
MetaField

CreateReferencedField(MetaClass, AttributeCollection, String, String)

Declaration
public static MetaField CreateReferencedField(MetaClass mc, AttributeCollection attr, string FieldName, string FieldFriendlyName)
Parameters
Type Name Description
MetaClass mc
AttributeCollection attr
System.String FieldName
System.String FieldFriendlyName
Returns
Type Description
MetaField

DeleteBridge(String)

Deletes the bridge.

Declaration
public static void DeleteBridge(string className)
Parameters
Type Name Description
System.String className

Name of the bridge class.

DeleteMetaField(MetaClass, String)

Deletes the meta field.

Declaration
public static void DeleteMetaField(MetaClass mc, string fieldName)
Parameters
Type Name Description
MetaClass mc

The meta class.

System.String fieldName

Name of the field.

DeleteReference(MetaClass, String)

Deletes the reference.

Declaration
public static void DeleteReference(MetaClass mc, string fieldName)
Parameters
Type Name Description
MetaClass mc

The meta class.

System.String fieldName

Name of the field.

DeleteReference(String, String)

Deletes the reference.

Declaration
public static void DeleteReference(string className, string fieldName)
Parameters
Type Name Description
System.String className

Name of the class.

System.String fieldName

Name of the field.

GetAttributeValue(MetaField, String)

Declaration
public static object GetAttributeValue(MetaField mf, string McDataTypeAttributeValue)
Parameters
Type Name Description
MetaField mf
System.String McDataTypeAttributeValue
Returns
Type Description
System.Object

GetEnumByName(String)

Declaration
public static MetaFieldType GetEnumByName(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
MetaFieldType

GetEnumList()

Declaration
public static MetaFieldType[] GetEnumList()
Returns
Type Description
MetaFieldType[]

GetFieldFormatsByType(String)

Declaration
public static MetaFieldType[] GetFieldFormatsByType(string TypeName)
Parameters
Type Name Description
System.String TypeName
Returns
Type Description
MetaFieldType[]

GetIdentifierByName(String)

Declaration
public static MetaFieldType GetIdentifierByName(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
MetaFieldType

GetIdentifierList()

Declaration
public static MetaFieldType[] GetIdentifierList()
Returns
Type Description
MetaFieldType[]

GetMetaClassByName(String)

Declaration
public static MetaClass GetMetaClassByName(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
MetaClass

GetMetaClassesSupportedCards()

Declaration
public static MetaClass[] GetMetaClassesSupportedCards()
Returns
Type Description
MetaClass[]

GetMetaFieldByName(MetaClass, String)

Declaration
public static MetaField GetMetaFieldByName(MetaClass mc, string fieldName)
Parameters
Type Name Description
MetaClass mc
System.String fieldName
Returns
Type Description
MetaField

GetMetaFieldByName(String, String)

Declaration
public static MetaField GetMetaFieldByName(string className, string fieldName)
Parameters
Type Name Description
System.String className
System.String fieldName
Returns
Type Description
MetaField

GetMetaFieldTypeByName(String)

Declaration
public static MetaFieldType GetMetaFieldTypeByName(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
MetaFieldType

GetOwnerClass(MetaClass)

Declaration
public static MetaClass GetOwnerClass(MetaClass mc)
Parameters
Type Name Description
MetaClass mc
Returns
Type Description
MetaClass

GetTitleField(MetaClass)

Declaration
public static MetaField GetTitleField(MetaClass mc)
Parameters
Type Name Description
MetaClass mc
Returns
Type Description
MetaField

GetTypeByName(String)

Declaration
public static MetaFieldType GetTypeByName(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
MetaFieldType

IsSortable(MetaField)

Determines whether the specified field is sortable.

Declaration
public static bool IsSortable(MetaField field)
Parameters
Type Name Description
MetaField field

The field.

Returns
Type Description
System.Boolean

true if the specified field is sortable; otherwise, false.

IsSortable(String, McMetaViewPreference)

Determines whether the specified field name is sortable.

Declaration
public static bool IsSortable(string fieldName, McMetaViewPreference pref)
Parameters
Type Name Description
System.String fieldName

Name of the field.

McMetaViewPreference pref

The pref.

Returns
Type Description
System.Boolean

true if the specified field name is sortable; otherwise, false.

MakeFieldsSystem(MetaClass)

Declaration
public static void MakeFieldsSystem(MetaClass mc)
Parameters
Type Name Description
MetaClass mc

RemoveClassAttribute(MetaClass, String)

Declaration
public static void RemoveClassAttribute(MetaClass mc, string attrName)
Parameters
Type Name Description
MetaClass mc
System.String attrName

ResolveMetaClassByNameOrCardName(String)

Declaration
public static MetaClass ResolveMetaClassByNameOrCardName(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
MetaClass

UpdateBridge(MetaClass, String, String, String, String)

Declaration
public static void UpdateBridge(MetaClass mc, string bridgeFriendlyName, string bridgePluralName, string field1FriendlyName, string field2FriendlyName)
Parameters
Type Name Description
MetaClass mc
System.String bridgeFriendlyName
System.String bridgePluralName
System.String field1FriendlyName
System.String field2FriendlyName

UpdateBridge(MetaClass, String, String, String, String, String, String, String, String, String, String, String)

Declaration
public static void UpdateBridge(MetaClass mc, string bridgeFriendlyName, string field1Name, string field1FriendlyName, string section1Name, string displayText1, string displayOrder1, string field2Name, string field2FriendlyName, string section2Name, string displayText2, string displayOrder2)
Parameters
Type Name Description
MetaClass mc
System.String bridgeFriendlyName
System.String field1Name
System.String field1FriendlyName
System.String section1Name
System.String displayText1
System.String displayOrder1
System.String field2Name
System.String field2FriendlyName
System.String section2Name
System.String displayText2
System.String displayOrder2

UpdateCard(MetaClass, String, String)

Declaration
public static void UpdateCard(MetaClass mc, string CardFriendlyName, string CardPluralName)
Parameters
Type Name Description
MetaClass mc
System.String CardFriendlyName
System.String CardPluralName

UpdateEnumFriendlyName(String, String)

Declaration
public static void UpdateEnumFriendlyName(string EnumName, string FriendlyName)
Parameters
Type Name Description
System.String EnumName
System.String FriendlyName

UpdateMetaClass(MetaClass, String, String, String)

Declaration
public static void UpdateMetaClass(MetaClass mc, string ClassFriendlyName, string ClassPluralName, string FieldFriendlyName)
Parameters
Type Name Description
MetaClass mc
System.String ClassFriendlyName
System.String ClassPluralName
System.String FieldFriendlyName

UpdateMetaField(MetaField, AttributeCollection, String, String)

Declaration
public static void UpdateMetaField(MetaField mf, AttributeCollection attr, string FieldFriendlyName, string DefaultValue)
Parameters
Type Name Description
MetaField mf
AttributeCollection attr
System.String FieldFriendlyName
System.String DefaultValue

UpdateMetaFieldFriendlyName(MetaField, String)

Declaration
public static void UpdateMetaFieldFriendlyName(MetaField mf, string FieldFriendlyName)
Parameters
Type Name Description
MetaField mf
System.String FieldFriendlyName

UpdateMetaIdentifier(String, String, MetaIdentifierType, MetaIdentifierPeriodType, String, Int32)

Declaration
public static void UpdateMetaIdentifier(string Name, string FriendlyName, MetaIdentifierType Type, MetaIdentifierPeriodType PeriodType, string IdentifierMask, int MaskDigitLength)
Parameters
Type Name Description
System.String Name
System.String FriendlyName
MetaIdentifierType Type
MetaIdentifierPeriodType PeriodType
System.String IdentifierMask
System.Int32 MaskDigitLength

UpdateReference(MetaField, String, String, String, String)

Declaration
public static void UpdateReference(MetaField mf, string friendlyName, string sectionName, string displayText, string displayOrder)
Parameters
Type Name Description
MetaField mf
System.String friendlyName
System.String sectionName
System.String displayText
System.String displayOrder