Click or drag to resize
IEntityCollectionSaveMultiAsync Method (Boolean, CancellationToken)
Async variant of SaveMulti(Boolean). Saves all new/dirty Entities in the IEntityCollection in the persistent storage. If this IEntityCollection is added to a transaction, the save 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 saves are done in a new Transaction (which is created in an inherited method.)

Namespace: SD.LLBLGen.Pro.ORMSupportClasses
Assembly: SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.0.0.0 (5.0.0)
Syntax
Task<int> SaveMultiAsync(
	bool recurse,
	CancellationToken cancellationToken
)

Parameters

recurse
Type: SystemBoolean
If true, will recursively save the entities inside the collection
cancellationToken
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: TaskInt32
Amount of entities inserted
Remarks
All exceptions will be bubbled upwards so transaction code can anticipate on exceptions.
See Also