Click or drag to resize
IDataAccessAdapterDeleteEntityCollection Method
Deletes all dirty objects inside the collection passed from the persistent storage. It will do this inside a transaction if a transaction is not yet available. Entities which are physically deleted from the persistent storage are marked with the state 'Deleted' but are not removed from the collection. If the passed in entity has a concurrency predicate factory object, the returned predicate expression is used to restrict the delete process.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.3.0.0 (5.3.0)
Syntax
int DeleteEntityCollection(
	IEntityCollection2 collectionToDelete
)

Parameters

collectionToDelete
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityCollection2
EntityCollection with one or more dirty entities which have to be persisted

Return Value

Type: Int32
the amount of physically deleted entities
See Also