Click or drag to resize
DataAccessAdapterCore.DeleteEntitiesDirectlyAsync Method (Type, IRelationPredicateBucket)
Async variant of DeleteEntitiesDirectly(Type, IRelationPredicateBucket). Deletes all entities of the type passed in from the persistent storage if they match the filter supplied in filterBucket.

Namespace: SD.LLBLGen.Pro.ORMSupportClasses
Assembly: SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.0.0.0 (5.0.0)
Syntax
public Task<int> DeleteEntitiesDirectlyAsync(
	Type typeOfEntity,
	IRelationPredicateBucket filterBucket
)

Parameters

typeOfEntity
Type: System.Type
The type of the entity to retrieve persistence information.
filterBucket
Type: SD.LLBLGen.Pro.ORMSupportClasses.IRelationPredicateBucket
filter information to filter out the entities to delete

Return Value

Type: Task<Int32>
the amount of physically deleted entities

Implements

IDataAccessAdapter.DeleteEntitiesDirectlyAsync(Type, IRelationPredicateBucket)
Exceptions
ExceptionCondition
ArgumentNullExceptiontypeOfEntity;typeOfEntity can't be null
Remarks
Not supported for entities which are in a TargetPerEntity hierarchy.
This overload performs authorization. Use this overload instead of the one which accepts a name instead of a type instance if you want to have authorization support at runtime.
See Also