Notifies the framework that a one-to-many association should be considered dependent. This determines, among other things, delete cascade behaviour. When a one-to-many association is dependent, child rows are cascade deleted along with the parent entity. DependentAttribute should be applied to the foreign key field (not the association field). NB. This is normally inferred based on the nullability of the corresponding foreign key field.

Namespace:  Mindscape.LightSpeed
Assembly:  Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

C#
[AttributeUsageAttribute(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public sealed class DependentAttribute : Attribute
Visual Basic (Declaration)
<AttributeUsageAttribute(AttributeTargets.Field, AllowMultiple := False, Inherited := False)> _
Public NotInheritable Class DependentAttribute _
	Inherits Attribute

Inheritance Hierarchy

System..::.Object
  System..::.Attribute
    Mindscape.LightSpeed..::.DependentAttribute

See Also