DeleteRule Property
Collapse the table of content
Expand the table of content

AssociationAttribute.DeleteRule Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets delete behavior for an association.

Namespace:  System.Data.Linq.Mapping
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public string DeleteRule { get; set; }

Property Value

Type: System.String
A string representing the rule.

If set to null, no delete behavior is added. For example, "CASCADE" would add "ON DELETE CASCADE" to the foreign-key relationship.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft