MetadataWorkspaceExtensions.GetDependentEnd Method (AssociationType)
Retrieves the dependent end of this association, given the following rules in order of priority: 1. If there is a referential constraint defined on the association, this returns the DependentEnd. 2. If the association's multiplicity is 1:1 and OnDelete='Cascade' is defined on the first end, then this returns the second end. If OnDelete='Cascade' is not defined on the first end, this returns the first end. 3. In a 1:* or 0..1:* association, this returns the end with the * multiplicity. 4. In a 0..1:1 association, this returns the end with the 0..1 multiplicity.
Assembly: Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)
Parameters
- association
-
Type:
System.Data.Entity.Core.Metadata.Edm.AssociationType
The association.
Exception | Condition |
---|---|
InvalidOperationException | if this association is *:* |