Knight Data Access Layer
ForeignKeyAction Enumeration




KellermanSoftware.NetDataAccessLayer Namespace : ForeignKeyAction Enumeration
The action taken when a user tries to delete or update a key to which existing foreign keys point
Syntax
Public Enum ForeignKeyAction 
   Inherits System.Enum
Dim instance As ForeignKeyAction
public enum ForeignKeyAction : System.Enum 
__value public enum ForeignKeyAction : public System.Enum 
public enum class ForeignKeyAction : public System.Enum 
Members
MemberDescription
Cascade Corresponding rows are updated or deleted in the referencing table when that row is updated or deleted in the parent table. CASCADE cannot be specified if a timestamp column is part of either the foreign key or the referenced key.
NoAction The Database Engine raises an error and the delete or update action on the row in the parent table is rolled back.
SetDefault All the values that make up the foreign key are set to their default values if the corresponding row in the parent table is updated or deleted. 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 or deleted. For this constraint to execute, the foreign key columns must be nullable.
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         KellermanSoftware.NetDataAccessLayer.ForeignKeyAction

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

KellermanSoftware.NetDataAccessLayer Namespace