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.
NB. This is normally inferred based on the nullability of the corresponding foreign key
field.

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

All Members | Constructors | Properties | |||
Icon | Member | Description |
---|---|---|
![]() | DependentAttribute()()() | |
![]() | ValidatePresence |
Whether or not the associated entity is required to be present.
|