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

Parameters

typeOfEntityFactory
Type: System..::..Type
Type of entity factory.
filter
Type: RelationPredicateBucket
Filter.
unitOfWork
Type: UnitOfWork2
Unit of work.

Implements

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

See Also