Enum ForeignKeyRule
Defines the actions to be taken when a foreign key constraint is violated or when referenced data is modified or deleted.
public enum ForeignKeyRule
Fields
Cascade = 2Specifies that the action is cascaded, meaning that the operation causing the foreign key constraint violation will be propagated to the referenced table.
None = 0No action is taken.
Restrict = 1Specifies that the action is restricted, meaning the operation causing the foreign key constraint violation cannot proceed.
SetDefault = 4Specifies that the action is set default, meaning that the foreign key column value will be set to the default value of the referenced column.
SetNull = 3Specifies that the action is set null, meaning that the foreign key column value will be set to NULL.