DeleteEntityCollection & DeleteEntitiesDirectly

Posts   
 
    
omar avatar
omar
User
Posts: 569
Joined: 15-Oct-2004
# Posted on: 11-Jun-2005 09:02:03   

from LLBL's reference manual

DataAccessAdapterBase.DeleteEntitiesDirectly Method Deletes all entities of the name passed in as entityName (e.g. "CustomerEntity") from the persistent storage if they match the filter supplied in filterBucket.

IDataAccessAdapter.DeleteEntityCollection 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.

does DeleteEntityCollection perform its work directly at the DB or it just loops through the entities in the collection deleting each one ?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 11-Jun-2005 11:09:37   

It loops through the entities, calling DeleteEntity() on each entity in the collection.

Frans Bouma | Lead developer LLBLGen Pro