ForeignKeyAction ForeignKeyAction ForeignKeyAction Enum


The ForeignKeyAction enumeration is a list of constant values that specify the action that is taken when the primary key reference by a foreign key is updated.

public enum class ForeignKeyAction
public enum ForeignKeyAction
Public Enum ForeignKeyAction


Cascade Cascade Cascade 1

The modification is also made to the foreign key.

NoAction NoAction NoAction 0

No action is taken.

SetDefault SetDefault SetDefault 3

The foreign key is set to the default value.

SetNull SetNull SetNull 2

The foreign key is set to null.


The ForeignKeyAction enumeration class is served by the UpdateAction property and the DeleteAction property.

Applies to