ForeignKey.UpdateAction Property

 

Gets or sets the Boolean property value that specifies whether the foreign key supports cascading updates.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

[SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.ReadOnlyAfterCreation | SfcPropertyFlags.Standalone | SfcPropertyFlags.SqlAzureDatabase | SfcPropertyFlags.Design)]
public ForeignKeyAction UpdateAction { get; set; }

Property Value

Type: Microsoft.SqlServer.Management.Smo.ForeignKeyAction

A Boolean value that specifies whether the foreign key supports cascading updates.

If True, all rows containing the foreign key are also updated when you attempt to update a row with a key that is referenced by the foreign key.

If False (default), the foreign key is not updated.

Return to top
Show: