Class MultiReferenceType
Represents manage method for multi reference fields.
Inheritance
Inherited Members
Namespace: Mediachase.BusinessFoundation.Data.Meta.Management
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 12.17.2Syntax
public static class MultiReferenceType
Methods
Create(String, String, MultiReferenceItem[])
Creates the specified type name.
Declaration
public static MetaFieldType Create(string typeName, string friendlyName, params MultiReferenceItem[] items)
Parameters
Type | Name | Description |
---|---|---|
System.String | typeName | Name of the type. |
System.String | friendlyName | Name of the friendly. |
MultiReferenceItem[] | items | The items. |
Returns
Type | Description |
---|---|
MetaFieldType |
GetAvailableReferences(MetaFieldType)
Declaration
public static MetaClass[] GetAvailableReferences(MetaFieldType metaType)
Parameters
Type | Name | Description |
---|---|---|
MetaFieldType | metaType |
Returns
Type | Description |
---|---|
MetaClass[] |
GetMultiReferenceItems(MetaFieldType)
Gets the multi reference items.
Declaration
public static MultiReferenceItem[] GetMultiReferenceItems(MetaFieldType type)
Parameters
Type | Name | Description |
---|---|---|
MetaFieldType | type | The type. |
Returns
Type | Description |
---|---|
MultiReferenceItem[] |
GetMultiReferenceItems(String)
Gets the multi reference items.
Declaration
public static MultiReferenceItem[] GetMultiReferenceItems(string typeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | typeName | Name of the type. |
Returns
Type | Description |
---|---|
MultiReferenceItem[] |
GetReference(MetaClass, String, MultiReferenceItem)
Gets the reference.
Declaration
public static MetaField GetReference(MetaClass metaClass, string multiReferenceFieldName, MultiReferenceItem item)
Parameters
Type | Name | Description |
---|---|---|
MetaClass | metaClass | The meta class. |
System.String | multiReferenceFieldName | Name of the multi reference field. |
MultiReferenceItem | item | The item. |
Returns
Type | Description |
---|---|
MetaField |
GetReference(MetaField, MultiReferenceItem)
Gets the reference.
Declaration
public static MetaField GetReference(MetaField multiReferenceField, MultiReferenceItem item)
Parameters
Type | Name | Description |
---|---|---|
MetaField | multiReferenceField | The multi reference field. |
MultiReferenceItem | item | The item. |
Returns
Type | Description |
---|---|
MetaField |
GetReferenceTitle(MetaClass, String, MultiReferenceItem)
Gets the reference title.
Declaration
public static MetaField GetReferenceTitle(MetaClass metaClass, string multiReferenceFieldName, MultiReferenceItem item)
Parameters
Type | Name | Description |
---|---|---|
MetaClass | metaClass | The meta class. |
System.String | multiReferenceFieldName | Name of the multi reference field. |
MultiReferenceItem | item | The item. |
Returns
Type | Description |
---|---|
MetaField |
GetReferenceTitle(MetaField, MultiReferenceItem)
Gets the reference title.
Declaration
public static MetaField GetReferenceTitle(MetaField multiReferenceField, MultiReferenceItem item)
Parameters
Type | Name | Description |
---|---|---|
MetaField | multiReferenceField | The multi reference field. |
MultiReferenceItem | item | The item. |
Returns
Type | Description |
---|---|
MetaField |
IsMultiReferenceField(MetaField)
Determines whether [is multi reference field] [the specified meta field].
Declaration
public static bool IsMultiReferenceField(MetaField metaField)
Parameters
Type | Name | Description |
---|---|---|
MetaField | metaField | The meta field. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Remove(MetaFieldType)
Removes the specified type.
Declaration
public static void Remove(MetaFieldType type)
Parameters
Type | Name | Description |
---|---|---|
MetaFieldType | type | The type. |