Click or drag to resize

IEntityCollectionDeleteMulti Method

Deletes all Entities in the IEntityCollection from the persistent storage. If this IEntityCollection is added to a transaction, the delete 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 deletes are done in a new Transaction (which is created in an inherited method.) Deleted entities are marked deleted and are removed from the collection.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax
int DeleteMulti()

Return Value

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