IDataAccessAdapterDeleteEntityCollectionAsync Method (IEntityCollection2, CancellationToken) |
Async variant of
DeleteEntityCollection(IEntityCollection2).
Deletes all dirty objects inside the collection passed from the persistent storage. It will do this inside a transaction if a transaction
is not yet available. Entities which are physically deleted from the persistent storage are marked with the state 'Deleted' but are not
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> DeleteEntityCollectionAsync(
IEntityCollection2 collectionToDelete,
CancellationToken cancellationToken
)
Function DeleteEntityCollectionAsync (
collectionToDelete As IEntityCollection2,
cancellationToken As CancellationToken
) As Task(Of Integer)
Parameters
- collectionToDelete
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityCollection2
EntityCollection with one or more dirty entities which have to be persisted - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskInt32
the amount of physically deleted entities
See Also