DataAccessAdapterCoreDeleteEntitiesDirectlyAsync Method (String, IRelationPredicateBucket, CancellationToken) | 
  
    Namespace: 
   SD.LLBLGen.Pro.ORMSupportClasses
    Assembly:
   SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.12.0.0 (5.12.0)
Syntaxpublic virtual Task<int> DeleteEntitiesDirectlyAsync(
	string entityName,
	IRelationPredicateBucket filterBucket,
	CancellationToken cancellationToken
)
Public Overridable Function DeleteEntitiesDirectlyAsync ( 
	entityName As String,
	filterBucket As IRelationPredicateBucket,
	cancellationToken As CancellationToken
) As Task(Of Integer)
Parameters
- entityName
 - Type: SystemString
The name of the entity to retrieve persistence information. For example "CustomerEntity". This name can be
            retrieved from an existing entity's LLBLGenProEntityName property. - 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
            
Implements
IDataAccessAdapterDeleteEntitiesDirectlyAsync(String, IRelationPredicateBucket, CancellationToken)
Remarks
            Not supported for entities which are in a TargetPerEntity hierarchy.
            
            This overload doesn't support Authorization or Auditing. It's recommended, if you want to use authorization and/or auditing on this method,
            use the overload of DeleteEntitiesDirectly which accepts a type.
            
See Also