Click or drag to resize
WorkDataCollectorAdd Method (IEntityRelation, CascadeActionType)
Adds the specified relationship as an edge to use for a cascade action. The start entity of the relationship specified (example: CustomerEntity.Relationships.OrderEntityUsingCustomerID: CustomerEntity is the start entity) has to be the PK side. The FK side is then worked on when the PK side is deleted. If cascadeAction is update, the FK fields are reset before the pk side is deleted: to a default value if not nullable, or to null if nullable. If cascadeAction is delete, the FK side is deleted before the pk side is deleted

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.1.0.0 (5.1.0)
Syntax
public WorkDataCollector Add(
	IEntityRelation toAdd,
	CascadeActionType cascadeAction
)

Parameters

toAdd
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityRelation
the relationship to add.
cascadeAction
Type: SD.LLBLGen.Pro.ORMSupportClassesCascadeActionType
The cascade action to execute for this particular relationship.

Return Value

Type: WorkDataCollector
See Also