IDataAccessAdapterDeleteEntitiesDirectlyAsync Method (Type, IRelationPredicateBucket, CancellationToken) | 
  
    Namespace: 
   SD.LLBLGen.Pro.ORMSupportClasses
    Assembly:
   SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.10.0.0 (5.10.0)
SyntaxTask<int> DeleteEntitiesDirectlyAsync(
	Type typeOfEntity,
	IRelationPredicateBucket filterBucket,
	CancellationToken cancellationToken
)
Function DeleteEntitiesDirectlyAsync ( 
	typeOfEntity As Type,
	filterBucket As IRelationPredicateBucket,
	cancellationToken As CancellationToken
) As Task(Of Integer)
Parameters
- typeOfEntity
 - Type: SystemType
The type of the entity to retrieve persistence information. - filterBucket
 - Type: SD.LLBLGen.Pro.ORMSupportClassesIRelationPredicateBucket
filter information to filter out the entities to delete - cancellationToken
 - Type: System.ThreadingCancellationToken
The cancellation token. 
Return Value
Type: 
TaskInt32
            the amount of physically deleted entities
            
Exceptions
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