Click or drag to resize

DaoBaseDeleteMultiAsync Method

Async variant of DeleteMulti(ITransaction, IPredicate, IRelationCollection). Deletes from the persistent storage all 'Employee' entities which match with the specified filter, formulated in the predicate or predicate expression definition.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.5.0.0 (5.5.18.1019)
Syntax
public Task<int> DeleteMultiAsync(
	ITransaction containingTransaction,
	IPredicate deleteFilter,
	IRelationCollection relations,
	CancellationToken cancellationToken
)

Parameters

containingTransaction
Type: SD.LLBLGen.Pro.ORMSupportClassesITransaction
A containing transaction, if caller is added to a transaction, or null if not.
deleteFilter
Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
A predicate or predicate expression which should be used as filter for the entities to delete.
relations
Type: SD.LLBLGen.Pro.ORMSupportClassesIRelationCollection
The set of relations to walk to construct the total query.
cancellationToken
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: TaskInt32
Number of entities affected, if the used persistent storage has rowcounting enabled.

Implements

IDaoDeleteMultiAsync(ITransaction, IPredicate, IRelationCollection, CancellationToken)
Remarks
Not supported for deleting entities which are part of a TargetPerEntity hierarchy
See Also