DaoBaseDeleteMulti Method (ITransaction, IPredicate) |
Deletes from the persistent storage all entities which match with the specified filter, formulated in
the predicate or predicate expression definition, of the type and subtypes of the entity owning this DAO.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax public int DeleteMulti(
ITransaction containingTransaction,
IPredicate deleteFilter
)
Public Function DeleteMulti (
containingTransaction As ITransaction,
deleteFilter As IPredicate
) As Integer
Parameters
- containingTransaction
- Type: SD.LLBLGen.Pro.ORMSupportClassesITransaction
A containing transaction, if caller is added to a transaction, or null if not. - deleteFilter
- Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
A predicate or predicate expression which should be used as filter for the entities to delete.
Return Value
Type:
Int32Number of entities affected, if the used persistent storage has rowcounting enabled.
Implements
IDaoDeleteMulti(ITransaction, IPredicate)Remarks Not supported for deleting entities which are part of a TargetPerEntity hierarchy
See Also