Appearance
BulkUpdateAsync Method
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Overloads
| Name | Description |
|---|---|
Task<int> BulkUpdateAsync(IEnumerable<T> list, int commitInterval = null, int commandTimeout = null, CancellationToken cancellationToken = null) | Updates a list of existing rows using provider-specific bulk techniques. |
Task<int> BulkUpdateAsync(Type entityType, IEnumerable list, int commitInterval = null, int commandTimeout = null, CancellationToken cancellationToken = null) | Updates a list of existing rows using provider-specific bulk techniques and a runtime entity type. |
Task<int> BulkUpdateAsync(Type entityType, IEnumerable list, int commitInterval = null, int commandTimeout = null, CancellationToken cancellationToken = null)
csharp
Task<int> BulkUpdateAsync(Type entityType, IEnumerable list, int commitInterval = null, int commandTimeout = null, CancellationToken cancellationToken = null)Updates a list of existing rows using provider-specific bulk techniques and a runtime entity type.
Task<int> BulkUpdateAsync(IEnumerable<T> list, int commitInterval = null, int commandTimeout = null, CancellationToken cancellationToken = null)
csharp
Task<int> BulkUpdateAsync(IEnumerable<T> list, int commitInterval = null, int commandTimeout = null, CancellationToken cancellationToken = null)Updates a list of existing rows using provider-specific bulk techniques.
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 | Batch size for transactional commits or flushes. |
list | Items to update. |
Returns
The number of rows updated.