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

UpdateOptions Enumeration

Controls what happens when performing a model-based update

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

Syntax


public enum UpdateOptions
Public Enumeration UpdateOptions
public enum class UpdateOptions

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.
UseKeyAttribute Ignore the primary keys on the table and perform the update using the Key attribute on properties to construct the where clause.
ReturnOldValues The return original values instead of the updated values.
SoftDelete Perform a soft delete as part of this update operation.
IgnoreRowsAffected The ignore rows affected count. Without this flag, an error will be thrown if the rows affected by the update operation is not one.