Skip to content

Upsert Method ​

Definition ​

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

Overloads ​

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

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

NameDescription
conflictActionBehavior when the primary key already exists.