NavigationProperty.GetDependentProperties Method ()

.NET Framework (current version)
 

Gets the foreign key properties for a navigation property that is on the dependent end of a referential constraint.

Namespace:   System.Data.Metadata.Edm
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public IEnumerable<EdmProperty> GetDependentProperties()

Return Value

Type: System.Collections.Generic.IEnumerable<EdmProperty>

A collection of the foreign key properties.

For a navigation property that is on the dependent end of a referential constraint, the GetDependentProperties method returns the corresponding foreign key properties. The returned properties will be in the same order as the principal end key properties.

If the navigation property is not on the dependent end of a referential constraint, the GetDependentProperties method returns an empty collection.

.NET Framework
Available since 4.0
Return to top
Show: