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#
public virtual void AddForCascadeDelete(
	Type typeOfEntityFactory,
	RelationPredicateBucket filter,
	UnitOfWork2 unitOfWork,
	int maxLevel
)
Visual Basic
Public Overridable Sub AddForCascadeDelete ( 
	typeOfEntityFactory As Type,
	filter As RelationPredicateBucket,
	unitOfWork As UnitOfWork2,
	maxLevel As Integer
)
Visual C++
public:
virtual void AddForCascadeDelete(
	Type^ typeOfEntityFactory, 
	RelationPredicateBucket^ filter, 
	UnitOfWork2^ unitOfWork, 
	int maxLevel
)
F#
abstract AddForCascadeDelete : 
        typeOfEntityFactory : Type * 
        filter : RelationPredicateBucket * 
        unitOfWork : UnitOfWork2 * 
        maxLevel : int -> unit 
override AddForCascadeDelete : 
        typeOfEntityFactory : Type * 
        filter : RelationPredicateBucket * 
        unitOfWork : UnitOfWork2 * 
        maxLevel : int -> unit 

Parameters

typeOfEntityFactory
Type: System..::..Type
Type of entity factory.
filter
Type: RelationPredicateBucket
Filter.
unitOfWork
Type: UnitOfWork2
Unit of work.
maxLevel
Type: System..::..Int32
Maximum number of cascade levels.

Implements

IRepositoryExtender..::..AddForCascadeDelete(Type, RelationPredicateBucket, UnitOfWork2, Int32)

See Also