Class EntityObjectHelper
Inheritance
System.Object
EntityObjectHelper
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.Common
Assembly: Mediachase.BusinessFoundation.dll
Version: 10.8.0Syntax
public static class EntityObjectHelper
Methods
GetEntityPropertyMetaFieldType(EntityObject, String)
Gets the type of the meta field.
Declaration
public static MetaFieldType GetEntityPropertyMetaFieldType(EntityObject entity, string fieldName)
Parameters
Type | Name | Description |
---|---|---|
EntityObject | entity | The entity. |
System.String | fieldName | Name of the field. |
Returns
Type | Description |
---|---|
MetaFieldType |
GetStringEntityEnumProperyValue(EntityObject, String)
Gets the string entity enum propery value.
Declaration
public static string GetStringEntityEnumProperyValue(EntityObject entity, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
EntityObject | entity | The entity. |
System.String | propertyName | Name of the property. |
Returns
Type | Description |
---|---|
System.String |
ManagedEnumToMetaEnum(Type, String)
Manageds the enum to meta enum.
Declaration
public static MetaFieldType ManagedEnumToMetaEnum(Type managedEnumType, string metaEnumName)
Parameters
Type | Name | Description |
---|---|---|
System.Type | managedEnumType | Type of the managed enum. |
System.String | metaEnumName | Name of the meta enum. |
Returns
Type | Description |
---|---|
MetaFieldType |
ManagedEnumToMultiSelectMetaEnum(Type, String)
Manageds the enum to multi select meta enum.
Declaration
public static MetaFieldType ManagedEnumToMultiSelectMetaEnum(Type managedEnumType, string metaEnumName)
Parameters
Type | Name | Description |
---|---|---|
System.Type | managedEnumType | Type of the managed enum. |
System.String | metaEnumName | Name of the meta enum. |
Returns
Type | Description |
---|---|
MetaFieldType |
ManagedEnumValueToMetaMultiSelectEnumValue<T>(T)
Manageds the enum value to meta multi select enum value.
Declaration
public static int[] ManagedEnumValueToMetaMultiSelectEnumValue<T>(T enumVal)
Parameters
Type | Name | Description |
---|---|---|
T | enumVal | The enum val. |
Returns
Type | Description |
---|---|
System.Int32[] |
Type Parameters
Name | Description |
---|---|
T |
MetaMultiSelectedEnumValueToManagedEnumValue<T>(Int32[])
Multis the enum value to managed enum value.
Declaration
public static T MetaMultiSelectedEnumValueToManagedEnumValue<T>(int[] propVal)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | propVal | The property values. |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
SetStringEntityEnumProperty(EntityObject, String, String)
Sets the string entity enum property.
Declaration
public static void SetStringEntityEnumProperty(EntityObject entity, string propertyName, string value)
Parameters
Type | Name | Description |
---|---|---|
EntityObject | entity | The entity. |
System.String | propertyName | Name of the property. |
System.String | value | The value. |