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()
Assembly: Mediachase.BusinessFoundation.dll
Version: 12.17.2
public class MetaDataWrapper
Constructors
Declaration
Fields
Declaration
public const string BridgeField1Name = "Field1"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string BridgeField2Name = "Field2"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string CardFieldFriendlyName = "Card"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string CardFieldName = "Card"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string ClassPrefix = "cls_"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string OwnerTypeAttr = "OwnerType"
Field Value
Type |
Description |
System.String |
|
Methods
Declaration
public static void AddClassAttribute(MetaClass mc, string attrName, object attrValue)
Parameters
Type |
Name |
Description |
MetaClass |
mc |
|
System.String |
attrName |
|
System.Object |
attrValue |
|
Declaration
public static MetaField CreateBackReference(MetaClass mc, AttributeCollection attr, string FieldName, string FieldFriendlyName)
Parameters
Returns
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
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
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
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
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
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
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
Declaration
public static MetaField CreateReferencedField(MetaClass mc, AttributeCollection attr, string FieldName, string FieldFriendlyName)
Parameters
Returns
Declaration
public static void DeleteBridge(string className)
Parameters
Type |
Name |
Description |
System.String |
className |
Name of the bridge class.
|
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.
|
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.
|
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.
|
Declaration
public static object GetAttributeValue(MetaField mf, string McDataTypeAttributeValue)
Parameters
Type |
Name |
Description |
MetaField |
mf |
|
System.String |
McDataTypeAttributeValue |
|
Returns
Type |
Description |
System.Object |
|
Declaration
public static MetaFieldType GetEnumByName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Declaration
public static MetaFieldType[] GetEnumList()
Returns
Declaration
public static MetaFieldType[] GetFieldFormatsByType(string TypeName)
Parameters
Type |
Name |
Description |
System.String |
TypeName |
|
Returns
Declaration
public static MetaFieldType GetIdentifierByName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Declaration
public static MetaFieldType[] GetIdentifierList()
Returns
Declaration
public static MetaClass GetMetaClassByName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Declaration
public static MetaClass[] GetMetaClassesSupportedCards()
Returns
Declaration
public static MetaField GetMetaFieldByName(MetaClass mc, string fieldName)
Parameters
Type |
Name |
Description |
MetaClass |
mc |
|
System.String |
fieldName |
|
Returns
Declaration
public static MetaField GetMetaFieldByName(string className, string fieldName)
Parameters
Type |
Name |
Description |
System.String |
className |
|
System.String |
fieldName |
|
Returns
Declaration
public static MetaFieldType GetMetaFieldTypeByName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Declaration
public static MetaClass GetOwnerClass(MetaClass mc)
Parameters
Returns
Declaration
public static MetaField GetTitleField(MetaClass mc)
Parameters
Returns
Declaration
public static MetaFieldType GetTypeByName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
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 .
|
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 .
|
Declaration
public static void MakeFieldsSystem(MetaClass mc)
Parameters
Declaration
public static void RemoveClassAttribute(MetaClass mc, string attrName)
Parameters
Type |
Name |
Description |
MetaClass |
mc |
|
System.String |
attrName |
|
Declaration
public static MetaClass ResolveMetaClassByNameOrCardName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
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 |
|
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 |
|
Declaration
public static void UpdateCard(MetaClass mc, string CardFriendlyName, string CardPluralName)
Parameters
Type |
Name |
Description |
MetaClass |
mc |
|
System.String |
CardFriendlyName |
|
System.String |
CardPluralName |
|
Declaration
public static void UpdateEnumFriendlyName(string EnumName, string FriendlyName)
Parameters
Type |
Name |
Description |
System.String |
EnumName |
|
System.String |
FriendlyName |
|
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 |
|
Declaration
public static void UpdateMetaField(MetaField mf, AttributeCollection attr, string FieldFriendlyName, string DefaultValue)
Parameters
Declaration
public static void UpdateMetaFieldFriendlyName(MetaField mf, string FieldFriendlyName)
Parameters
Type |
Name |
Description |
MetaField |
mf |
|
System.String |
FieldFriendlyName |
|
Declaration
public static void UpdateMetaIdentifier(string Name, string FriendlyName, MetaIdentifierType Type, MetaIdentifierPeriodType PeriodType, string IdentifierMask, int MaskDigitLength)
Parameters
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 |
|