Click or drag to resize

EntityCollectionBaseTEntityDeleteMultiAsync 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.8.0.0 (5.8.21.0111)
Syntax
public virtual Task<int> DeleteMultiAsync(
	CancellationToken cancellationToken
)

Parameters

cancellationToken
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: TaskInt32
Amount of entities deleted

Implements

IEntityCollectionDeleteMultiAsync(CancellationToken)
See Also