Appearance
DeleteListAsync Method
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Overloads
| Name | Description |
|---|---|
Task<int> DeleteListAsync(IEnumerable<T> list, int commitInterval = null, int commandTimeout = null, CancellationToken cancellationToken = null) | Deletes a list of records using each item's primary key value. |
Task<int> DeleteListAsync(Type entityType, IEnumerable list, int commitInterval = null, int commandTimeout = null, CancellationToken cancellationToken = null) | Deletes a list of records using a runtime entity type and each item's primary key value. |
Task<int> DeleteListAsync(Type entityType, IEnumerable list, int commitInterval = null, int commandTimeout = null, CancellationToken cancellationToken = null)
csharp
Task<int> DeleteListAsync(Type entityType, IEnumerable list, int commitInterval = null, int commandTimeout = null, CancellationToken cancellationToken = null)Deletes a list of records using a runtime entity type and each item's primary key value.
Task<int> DeleteListAsync(IEnumerable<T> list, int commitInterval = null, int commandTimeout = null, CancellationToken cancellationToken = null)
csharp
Task<int> DeleteListAsync(IEnumerable<T> list, int commitInterval = null, int commandTimeout = null, CancellationToken cancellationToken = null)Deletes a list of records using each item's 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. |
commitInterval | Maximum primary keys per DELETE ... IN (...) command. |
list | Items whose primary keys identify rows to delete. |
Returns
The number of rows deleted.