IDataAccessAdapterSaveEntityCollectionAsync Method (IEntityCollection2, CancellationToken) |
Async variant of
SaveEntityCollection(IEntityCollection2).
Saves all dirty objects inside the collection passed to the persistent storage. It will do this inside a transaction if a transaction
is not yet available. Will not refetch saved entities and will not recursively save the entities.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax Task<int> SaveEntityCollectionAsync(
IEntityCollection2 collectionToSave,
CancellationToken cancellationToken
)
Function SaveEntityCollectionAsync (
collectionToSave As IEntityCollection2,
cancellationToken As CancellationToken
) As Task(Of Integer)
Parameters
- collectionToSave
- 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 persisted entities
See Also