Skip to content

BulkUpdateAsync Method ​

Definition ​

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Overloads ​

NameDescription
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 ​

NameDescription
TThe entity (row) type.

Parameters ​

NameDescription
cancellationTokenCancellation token.
commandTimeoutCommand timeout in seconds. Use -1 for provider default.
commitIntervalBatch size for transactional commits or flushes.
listItems to update.

Returns ​

The number of rows updated.