DataAccessAdapterCoreSaveEntityCollection Method (IEntityCollection2, Boolean, Boolean) | 
 
            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.
            
 
    Namespace: 
   SD.LLBLGen.Pro.ORMSupportClasses
    Assembly:
   SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.10.0.0 (5.10.0)
Syntaxpublic virtual int SaveEntityCollection(
	IEntityCollection2 collectionToSave,
	bool refetchSavedEntitiesAfterSave,
	bool recurse
)
Public Overridable Function SaveEntityCollection ( 
	collectionToSave As IEntityCollection2,
	refetchSavedEntitiesAfterSave As Boolean,
	recurse As Boolean
) As 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. 
Return Value
Type: 
Int32the amount of persisted entities
Implements
IDataAccessAdapterSaveEntityCollection(IEntityCollection2, Boolean, Boolean)
See Also