Click or drag to resize
ObjectDependency Constructor
Creates a new ObjectDependency instance, defining a reference (foreign key relationship) from one object type to another.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax
C#
public ObjectDependency(
	string dependencyColumn,
	string dependencyObjectType,
	ObjectDependencyEnum required = ObjectDependencyEnum.NotRequired,
	string objectTypeColumn = null
)

Parameters

dependencyColumn
Type: SystemString
The name of the foreign key column that stores the IDs of the referenced objects
dependencyObjectType
Type: SystemString
The object type that is the target of the reference (null if the target object type is stored in a data column - use the fourth param to specify the field name)
required (Optional)
Type: CMS.DataEngineObjectDependencyEnum
Determines how the system handles referential integrity and automatic removal of objects when a referenced object is deleted (Not required reference by default)
objectTypeColumn (Optional)
Type: SystemString
The name of the column that stores the target object type of the reference (null for standard references)
See Also