Adds the entity to unit of work used to perform one-level cascading delete in situations where cascading delete cannot be defined on a database level. All dependant sub-entities of the entityToDelete are deleted.

Namespace: MonoSoftware.LLBLGen
Assembly: MonoSoftware.LLBLGen (in MonoSoftware.LLBLGen.dll) Version: 1.0.40.661 (1.0.40.661)

Syntax

C#
void AddForCascadeDelete(
	IEntity2 entityToDelete,
	UnitOfWork2 unitOfWork,
	int maxLevel
)
Visual Basic
Sub AddForCascadeDelete ( 
	entityToDelete As IEntity2,
	unitOfWork As UnitOfWork2,
	maxLevel As Integer
)
Visual C++
void AddForCascadeDelete(
	IEntity2^ entityToDelete, 
	UnitOfWork2^ unitOfWork, 
	int maxLevel
)
F#
abstract AddForCascadeDelete : 
        entityToDelete : IEntity2 * 
        unitOfWork : UnitOfWork2 * 
        maxLevel : int -> unit 

Parameters

entityToDelete
Type: IEntity2
Entity to delete
unitOfWork
Type: UnitOfWork2
Unit of work.
maxLevel
Type: System..::..Int32
Maximum number of cascade levels.

See Also