Click or drag to resize

EntityCollectionBaseTEntityDeleteMulti Method (IPredicate)

Deletes from the persistent storage all entities of the type this collection is for which match with the specified filter, formulated in the predicate or predicate expression definition.

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
public virtual int DeleteMulti(
	IPredicate deleteFilter
)

Parameters

deleteFilter
Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
A predicate or predicate expression which should be used as filter for the entities to delete. Can be null, which will result in a query removing all entities of the type this collection is for from the persistent storage

Return Value

Type: Int32
Amount of entities affected, if the used persistent storage has rowcounting enabled.

Implements

IEntityCollectionDeleteMulti(IPredicate)
Remarks
Not supported for entities which are in a hierarchy of TargetPerEntity
See Also