Enum ForeignKeyRule
Foreign key rule. Defines what to do with child records when the value of parent record changes or is deleted.
Namespace: Kros.Data.Schema
Assembly: Kros.Utils.dll
Syntax
public enum ForeignKeyRule
Fields
Name | Description |
---|---|
Cascade | Corresponding rows are updated in the referencing table when that row is updated in the parent table. |
NoAction | No action is taken. . |
SetDefault | All the values that make up the foreign key are set to their default values when the corresponding row in the parent table is updated. For this constraint to execute, all foreign key columns must have default definitions. If a column is nullable, and there is no explicit default value set, NULL becomes the implicit default value of the column. |
SetNull | All the values that make up the foreign key are set to NULL when the corresponding row in the parent table is updated. For this constraint to execute, the foreign key columns must be nullable. |