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.LLBLGenAssembly: MonoSoftware.LLBLGen (in MonoSoftware.LLBLGen.dll) Version: 1.0.40.661 (1.0.40.661)
Syntax
C# |
---|
void AddForCascadeDelete(
Type typeOfEntityFactory,
RelationPredicateBucket filter,
UnitOfWork2 unitOfWork,
int maxLevel
) |
Visual Basic |
---|
Sub AddForCascadeDelete (
typeOfEntityFactory As Type,
filter As RelationPredicateBucket,
unitOfWork As UnitOfWork2,
maxLevel As Integer
) |
Visual C++ |
---|
void AddForCascadeDelete(
Type^ typeOfEntityFactory,
RelationPredicateBucket^ filter,
UnitOfWork2^ unitOfWork,
int maxLevel
) |
F# |
---|
abstract 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.
See Also