Appearance
UpsertList Method
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Task<int> UpsertList(IDatabaseSession connection, IEnumerable<T> list, int commitInterval = null, int commandTimeout = null, UpsertConflictAction conflictAction = null)
csharp
Task<int> UpsertList(IDatabaseSession connection, IEnumerable<T> list, int commitInterval = null, int commandTimeout = null, UpsertConflictAction conflictAction = null)UPSERT - Performs an INSERT or UPDATE to a list of records based on existence in the database
Parameters
| Name | Description |
|---|---|
conflictAction | Behavior when the primary key already exists. |
Returns
Number of records updated