Class AggregationUtil
Provides functionality for calculating agregation references.
Inheritance
Inherited Members
Namespace: Mediachase.BusinessFoundation.Data.Meta.Management
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 13.30.0Syntax
public static class AggregationUtil
Methods
DeleteAllElements(MetaField, PrimaryKeyId)
Deletes all elements.
Declaration
public static void DeleteAllElements(MetaField aggregation, PrimaryKeyId primaryKeyId)
Parameters
Type | Name | Description |
---|---|---|
MetaField | aggregation | The aggregation. |
PrimaryKeyId | primaryKeyId | The primary key id. |
GetContainerReferenceFieldName(MetaClass)
Gets the name of the container reference field.
Declaration
public static string GetContainerReferenceFieldName(MetaClass container)
Parameters
Type | Name | Description |
---|---|---|
MetaClass | container | The container. |
Returns
Type | Description |
---|---|
System.String |
GetContainerReferenceIdFieldName(MetaClass)
Gets the name of the container reference id field.
Declaration
public static string GetContainerReferenceIdFieldName(MetaClass container)
Parameters
Type | Name | Description |
---|---|---|
MetaClass | container | The container. |
Returns
Type | Description |
---|---|
System.String |
GetDefaultElement(MetaField, PrimaryKeyId)
Gets the default element.
Declaration
public static MetaObject GetDefaultElement(MetaField aggregation, PrimaryKeyId primaryKeyId)
Parameters
Type | Name | Description |
---|---|---|
MetaField | aggregation | The aggregation. |
PrimaryKeyId | primaryKeyId | The primary key id. |
Returns
Type | Description |
---|---|
MetaObject |
GetDefaultElement(String, String, PrimaryKeyId)
Gets the default element.
Declaration
public static MetaObject GetDefaultElement(string containerMetaClassName, string aggregationMetaFieldName, PrimaryKeyId primaryKeyId)
Parameters
Type | Name | Description |
---|---|---|
System.String | containerMetaClassName | Name of the container meta class. |
System.String | aggregationMetaFieldName | Name of the aggregation meta field. |
PrimaryKeyId | primaryKeyId | The primary key id. |
Returns
Type | Description |
---|---|
MetaObject |
GetElementMetaClass(MetaField)
Gets the element meta class.
Declaration
public static MetaClass GetElementMetaClass(MetaField aggregation)
Parameters
Type | Name | Description |
---|---|---|
MetaField | aggregation | The aggregation. |
Returns
Type | Description |
---|---|
MetaClass |
GetElements(MetaField, PrimaryKeyId)
Gets the elements.
Declaration
public static MetaObject[] GetElements(MetaField aggregation, PrimaryKeyId primaryKeyId)
Parameters
Type | Name | Description |
---|---|---|
MetaField | aggregation | The aggregation. |
PrimaryKeyId | primaryKeyId | The primary key id. |
Returns
Type | Description |
---|---|
MetaObject[] |
GetElements(String, String, PrimaryKeyId)
Gets the elements.
Declaration
public static MetaObject[] GetElements(string containerMetaClassName, string aggregationMetaFieldName, PrimaryKeyId primaryKeyId)
Parameters
Type | Name | Description |
---|---|---|
System.String | containerMetaClassName | Name of the container meta class. |
System.String | aggregationMetaFieldName | Name of the aggregation meta field. |
PrimaryKeyId | primaryKeyId | The primary key id. |
Returns
Type | Description |
---|---|
MetaObject[] |
GetIsDefaultElementFieldName(MetaClass)
Gets the name of the is default element field.
Declaration
public static string GetIsDefaultElementFieldName(MetaClass container)
Parameters
Type | Name | Description |
---|---|---|
MetaClass | container | The container. |
Returns
Type | Description |
---|---|
System.String |
ResetAllDefaultElement(MetaField, PrimaryKeyId)
Resets all default element.
Declaration
public static void ResetAllDefaultElement(MetaField aggregation, PrimaryKeyId primaryKeyId)
Parameters
Type | Name | Description |
---|---|---|
MetaField | aggregation | The aggregation. |
PrimaryKeyId | primaryKeyId | The primary key id. |
ResetAllDefaultElement(MetaField, PrimaryKeyId, PrimaryKeyId)
Resets all default element.
Declaration
public static void ResetAllDefaultElement(MetaField aggregation, PrimaryKeyId primaryKeyId, PrimaryKeyId excludeElementId)
Parameters
Type | Name | Description |
---|---|---|
MetaField | aggregation | The aggregation. |
PrimaryKeyId | primaryKeyId | The primary key id. |
PrimaryKeyId | excludeElementId | The element id to exclude. |