Enum UpsertEmulationPolicy
- Namespace
- LinqToDB
- Assembly
- linq2db.dll
Controls what happens when an Upsert cannot be expressed as a native single-statement upsert
or MERGE for the target provider and would fall back to an emulated multi-statement
SELECT → UPDATE → INSERT sequence. See UpsertEmulationPolicy.
public enum UpsertEmulationPolicy
- Extension Methods
Fields
Allow = 0Perform the emulated multi-statement fallback (default). The statements run as independent commands; wrap the call in a transaction if atomicity is required.
Throw = 1Reject the emulated fallback: throw LinqToDBException at build time instead.