IEntityCollectionDeleteMultiAsync Method (IPredicate, IRelationCollection, CancellationToken) |
Async variant of
DeleteMulti(IPredicate, IRelationCollection).
Deletes from the persistent storage all entities of the type this collection is for 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.7.0.0 (5.7.0)
Syntax Task<int> DeleteMultiAsync(
IPredicate deleteFilter,
IRelationCollection relations,
CancellationToken cancellationToken
)
Function DeleteMultiAsync (
deleteFilter As IPredicate,
relations As IRelationCollection,
cancellationToken As CancellationToken
) As Task(Of Integer)
Parameters
- deleteFilter
- Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
A predicate or predicate expression which should be used as filter for the entities to delete. Can be null,
which will result in a query removing all entities of the type this collection is for from the persistent storage - 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:
TaskInt32Remarks
Not supported for entities which are in a hierarchy of TargetPerEntity
See Also