Appearance
DeleteAsync Method
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Overloads
| Name | Description |
|---|---|
Task<bool> DeleteAsync(T item, int commandTimeout = null, CancellationToken cancellationToken = null) | Deletes a record using the entity primary key value. |
Task<bool> DeleteAsync(Type entityType, object item, int commandTimeout = null, CancellationToken cancellationToken = null) | Deletes a record using a runtime entity type and instance. |
Task<bool> DeleteAsync(Type entityType, object item, int commandTimeout = null, CancellationToken cancellationToken = null)
csharp
Task<bool> DeleteAsync(Type entityType, object item, int commandTimeout = null, CancellationToken cancellationToken = null)Deletes a record using a runtime entity type and instance.
Task<bool> DeleteAsync(T item, int commandTimeout = null, CancellationToken cancellationToken = null)
csharp
Task<bool> DeleteAsync(T item, int commandTimeout = null, CancellationToken cancellationToken = null)Deletes a record using the entity primary key value.
Type parameters
| Name | Description |
|---|---|
T | The entity (row) type. |
Parameters
| Name | Description |
|---|---|
cancellationToken | Cancellation token. |
commandTimeout | Command timeout in seconds. Use -1 for provider default. |
item | Item whose primary key identifies the row to delete. |
Returns
true if a row was deleted; otherwise false.