Tortuga.Chain Namespace
Tortuga.Chain.CommandBuilders Namespace
Tortuga.Chain.Metadata Namespace

UpsertOptions Enumeration

Controls what happens when performing a model-based insert or update

Namespace:  Tortuga.Chain
Assembly:  Tortuga.Chain.Core (in Tortuga.Chain.Core.dll)

Syntax


public enum UpsertOptions
Public Enumeration UpsertOptions
public enum class UpsertOptions

Members


Member nameDescription
None Update all non-primary key columns using the primary key columns for the where clause.
ChangedPropertiesOnly Uses the IPropertyChangeTracking interface to only update changed properties. This flag has no effect when performing an insert.
UseKeyAttribute Ignore the primary keys on the table and perform the update using the Key attribute on properties to construct the where clause.
IdentityInsert Allows overriding identity/auto-number column