Appearance
Upsert Method
Definition
- Namespace:
JASE.Database.SqlGenerators - Assembly:
JASE.Database.dll
Overloads
| Name | Description |
|---|---|
UpsertStatement Upsert(ITableInfo tableInfo, UpsertConflictAction conflictAction = null) | Generates statement to UPSERT a row into the database table setting INSERT all columns On conflict UPDATE all mutable columns and querying by the Primary Key |
UpsertStatement Upsert(ITableInfo tableInfo, IEnumerable<IParameter> parameters, int index = null, UpsertConflictAction conflictAction = null) | Generate SQL command to UPDATE or INSERT based on primary key |
UpsertStatement Upsert(ITableInfo tableInfo, UpsertConflictAction conflictAction = null)
csharp
UpsertStatement Upsert(ITableInfo tableInfo, UpsertConflictAction conflictAction = null)Generates statement to UPSERT a row into the database table setting INSERT all columns On conflict UPDATE all mutable columns and querying by the Primary Key
Parameters
| Name | Description |
|---|---|
conflictAction | Behavior when the primary key already exists. |
UpsertStatement Upsert(ITableInfo tableInfo, IEnumerable<IParameter> parameters, int index = null, UpsertConflictAction conflictAction = null)
csharp
UpsertStatement Upsert(ITableInfo tableInfo, IEnumerable<IParameter> parameters, int index = null, UpsertConflictAction conflictAction = null)Generate SQL command to UPDATE or INSERT based on primary key
Parameters
| Name | Description |
|---|---|
conflictAction | Behavior when the primary key already exists. |