DataHelperRecomputeChildCount Method |
Re-computes count of child objects in parentObjects data table's childCountColumn column.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax public static void RecomputeChildCount(
DataTable parentObjects,
string idColumn,
string childCountColumn,
DataTable childObjects,
string parentIdColumn
)
Parameters
- parentObjects
- Type: System.DataDataTable
Data table containing parent objects. - idColumn
- Type: SystemString
Identity column name in parentObjects table which the child objects reference. - childCountColumn
- Type: SystemString
Child count column name where the computed child objects count is stored. - childObjects
- Type: System.DataDataTable
Data table containing child objects. - parentIdColumn
- Type: SystemString
Foreign key column name in childObjects table which references the parent.
See Also