DataAccessAdapterCoreSaveEntityCollectionAsync Method (IEntityCollection2, Boolean, Boolean, CancellationToken) |
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.9.0.0 (5.9.0)
Syntax public virtual Task<int> SaveEntityCollectionAsync(
IEntityCollection2 collectionToSave,
bool refetchSavedEntitiesAfterSave,
bool recurse,
CancellationToken cancellationToken
)
Public Overridable Function SaveEntityCollectionAsync (
collectionToSave As IEntityCollection2,
refetchSavedEntitiesAfterSave As Boolean,
recurse As Boolean,
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 - refetchSavedEntitiesAfterSave
- Type: SystemBoolean
Refetches a saved entity from the database, so the entity will not be 'out of sync' - recurse
- Type: SystemBoolean
When true, it will save all dirty objects referenced (directly or indirectly) by the entities inside collectionToSave also. - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskInt32 the amount of persisted entities
Implements
IDataAccessAdapterSaveEntityCollectionAsync(IEntityCollection2, Boolean, Boolean, CancellationToken)See Also