Skip to content

UpsertListAsync Method ​

Definition ​

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

Overloads ​

NameDescription
Task<int> UpsertListAsync(IEnumerable<T> list, int commitInterval = null, int commandTimeout = null, CancellationToken cancellationToken = null, UpsertConflictAction conflictAction = null)Inserts or updates a list of records depending on whether each primary key already exists.
Task<int> UpsertListAsync(Type entityType, IEnumerable list, int commitInterval = null, int commandTimeout = null, CancellationToken cancellationToken = null, UpsertConflictAction conflictAction = null)Inserts or updates a list of records using a runtime entity type.

Task<int> UpsertListAsync(Type entityType, IEnumerable list, int commitInterval = null, int commandTimeout = null, CancellationToken cancellationToken = null, UpsertConflictAction conflictAction = null) ​

csharp
Task<int> UpsertListAsync(Type entityType, IEnumerable list, int commitInterval = null, int commandTimeout = null, CancellationToken cancellationToken = null, UpsertConflictAction conflictAction = null)

Inserts or updates a list of records using a runtime entity type.

Task<int> UpsertListAsync(IEnumerable<T> list, int commitInterval = null, int commandTimeout = null, CancellationToken cancellationToken = null, UpsertConflictAction conflictAction = null) ​

csharp
Task<int> UpsertListAsync(IEnumerable<T> list, int commitInterval = null, int commandTimeout = null, CancellationToken cancellationToken = null, UpsertConflictAction conflictAction = null)

Inserts or updates a list of records depending on whether each primary key already exists.