Class DefaultDataChildDependency
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
Specifies dependency of an object type on a child object type to allow child count re-computation when selecting the default data.
public class DefaultDataChildDependency
- Inheritance
-
objectDefaultDataChildDependency
- Extension Methods
Constructors
DefaultDataChildDependency(string, string, string, string)
Creates new default data child dependency specification.
public DefaultDataChildDependency(string idColumn, string childCountColumn, string childObjectType, string parentIdColumn)
Parameters
idColumnstringName of the column which serves as an identifier of master object (parent).
childCountColumnstringName of the column within master object (parent) containing count of child objects.
childObjectTypestringObject type of the child objects.
parentIdColumnstringName of the column which identifies referenced parent object within child objects (the name of the foreign key column).
Properties
ChildCountColumn
Name of the column within master object (parent) containing count of child objects.
public string ChildCountColumn { get; }
Property Value
- string
ChildObjectType
Object type of the child objects.
public string ChildObjectType { get; }
Property Value
- string
IdColumn
Name of the column which serves as an identifier of master object (parent). Usually the ID column.
public string IdColumn { get; }
Property Value
- string
ParentIdColumn
Name of the column which identifies referenced parent object within child objects (the name of the foreign key column).
public string ParentIdColumn { get; }
Property Value
- string