IEntityCollectionDeleteMultiAsync Method (CancellationToken) |
Async variant of
DeleteMulti.
Deletes all Entities in the IEntityCollection from the persistent storage. If this IEntityCollection is added
to a transaction, the delete processes will be done in that transaction, if the entity isn't already added to another transaction.
If the entity is already in another transaction, it will use that transaction. If no transaction is present, the deletes are done in a/ new Transaction.
Deleted entities are marked deleted and are removed from the collection.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax Task<int> DeleteMultiAsync(
CancellationToken cancellationToken
)
Function DeleteMultiAsync (
cancellationToken As CancellationToken
) As Task(Of Integer)
Parameters
- cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskInt32
Amount of entities deleted
See Also