Click or drag to resize

EntityBaseDeleteAsync Method (CancellationToken)

Async variant of Delete. Deletes the Entity from the persistent storage. This method succeeds also when the Entity is not present.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.5.0.0 (5.5.18.1019)
Syntax
public Task<bool> DeleteAsync(
	CancellationToken cancellationToken
)

Parameters

cancellationToken
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: TaskBoolean
true if Delete succeeded, false otherwise

Implements

IEntityDeleteAsync(CancellationToken)
Exceptions
ExceptionCondition
ORMConcurrencyExceptionThe delete action of an entity failed, probably due to the set delete restriction provided. The entity which failed is enclosed.
ORMQueryExecutionExceptionWhen an exception is caught during the delete process. The caught exception is set as the inner exception. Encapsulation of database-related exceptions is necessary since these exceptions do not have a common exception framework implemented.
See Also