|IDataAccessAdapterDeleteEntityAsync Method (IEntity2, CancellationToken)|
Async variant of DeleteEntity(IEntity2)
Deletes the specified entity from the persistent storage. The entity is not usable after this call, the state is set to OutOfSync.
Will use the current transaction if a transaction is in progress.
If the passed in entity has a concurrency predicate factory object, the returned predicate expression is used to restrict the delete process.
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 126.96.36.199 (5.3.0)
Function DeleteEntityAsync (
entityToDelete As IEntity2,
cancellationToken As CancellationToken
) As Task(Of Boolean)
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntity2
The entity instance to delete from the persistent storage
- Type: System.ThreadingCancellationToken
The cancellation token.
true if the delete was succesful, otherwise false.