Enum ForeignKeyRule

Namespace
DbExport.Schema
Assembly
DbExport.Api.dll

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 = 2

Specifies that the action is cascaded, meaning that the operation causing the foreign key constraint violation will be propagated to the referenced table.

None = 0

No action is taken.

Restrict = 1

Specifies that the action is restricted, meaning the operation causing the foreign key constraint violation cannot proceed.

SetDefault = 4

Specifies 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 = 3

Specifies that the action is set null, meaning that the foreign key column value will be set to NULL.