IDaoDeleteExistingAsync Method |
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 Task<bool> DeleteExistingAsync(
IEntityFields fields,
ITransaction containingTransaction,
IPredicate deleteRestriction,
CancellationToken cancellationToken
)
Function DeleteExistingAsync (
fields As IEntityFields,
containingTransaction As ITransaction,
deleteRestriction As IPredicate,
cancellationToken As CancellationToken
) As Task(Of Boolean)
Parameters
- fields
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFields
The EntityField data to use for the deletion - containingTransaction
- Type: SD.LLBLGen.Pro.ORMSupportClassesITransaction
A containing transaction, if caller is added to a transaction, or null if not. - deleteRestriction
- Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
Predicate expression, meant for concurrency checks in a delete query. Can be null. - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskBoolean
true if the delete was succesful, false otherwise
Exceptions See Also