Click or drag to resize
DataScopeOnEntityDelete Method
Called when toDelete is about to be deleted. Use this method to specify work to be done by the scope to avoid FK constraint issues. workData is meant to collect this work. It can either be additional entities to delete prior to 'toDelete', or a list of relations which are used to create cascading delete actions executed prior to the delete action of toDelete.

Namespace: SD.LLBLGen.Pro.ORMSupportClasses
Assembly: SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.0.0.0 (5.0.0)
Syntax
protected virtual void OnEntityDelete(
	IEntityCore toDelete,
	WorkDataCollector workData
)

Parameters

toDelete
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityCore
To delete.
workData
Type: SD.LLBLGen.Pro.ORMSupportClassesWorkDataCollector
The work data.
See Also