CatDisplayCategoryTable.doDiffParentSet Method
Updates the nested set values for the whole subtree rooted at the record due to the parent changes.
Syntax
public void doDiffParentSet(CatDisplayCategoryTable _thisFromDB, CatDisplayCategoryTable _newParentCategoryFromDB)
Run On
Called
Parameters
- _thisFromDB
Type: CatDisplayCategoryTable Table
The same as this record, refreshed from the database.
- _newParentCategoryFromDB
Type: CatDisplayCategoryTable Table
The new parent for this record, refreshed from the database.
Remarks
The TreeLevel, NestedSetLeft, NestedSetRight fields to be updated. This method will set the nested values without checking if the nested set values violate "nested set" integrity.
The caller is responsible for the checking.
This method does not persist anything to the database.