OnConflict Type
Specifies how to handle conflicts when inserting records with duplicate primary keys. Currently supported only on databases that have UPSERT capabilities.
Union cases
| Union case |
Description
|
Full Usage:
DoNothing
|
If the primary key already exists, leaves the existing row unchanged. Currently supported only on PostgreSQL 9.5+ |
Full Usage:
Throw
|
Throws an exception if the primary key already exists (default behaviour). |
Full Usage:
Update
|
If the primary key already exists, updates the existing row's columns to match the new entity. Currently supported only on PostgreSQL 9.5+ |
Instance members
| Instance member |
Description
|
Full Usage:
this.IsDoNothing
Returns: bool
|
|
Full Usage:
this.IsThrow
Returns: bool
|
|
Full Usage:
this.IsUpdate
Returns: bool
|
|