Share via


NavigationProperty Class

Definition

Represent the edm navigation property class

public sealed class NavigationProperty : System.Data.Entity.Core.Metadata.Edm.EdmMember
type NavigationProperty = class
    inherit EdmMember
Public NotInheritable Class NavigationProperty
Inherits EdmMember
Inheritance
NavigationProperty

Properties

BuiltInTypeKind

Gets the built-in type kind for this NavigationProperty.

DeclaringType

Gets the type on which this member is declared.

(Inherited from EdmMember)
Documentation

Gets or sets the documentation associated with this type.

(Inherited from MetadataItem)
FromEndMember

Gets the "from" relationship end member in this navigation.

IsStoreGeneratedComputed

Tells whether this member is marked as a Computed member in the EDM definition

(Inherited from EdmMember)
IsStoreGeneratedIdentity

Tells whether this member's Store generated pattern is marked as Identity in the EDM definition

(Inherited from EdmMember)
MetadataProperties

Gets the list of properties of the current type.

(Inherited from MetadataItem)
Name

Gets or sets the name of the property. Setting this from a store-space model-convention will change the name of the database column for this property. In the conceptual model, this should align with the corresponding property from the entity class and should not be changed.

(Inherited from EdmMember)
RelationshipType

Gets the relationship type that this navigation property operates on.

ToEndMember

Gets the "to" relationship end member of this navigation.

TypeUsage

Gets the instance of the TypeUsage class that contains both the type of the member and facets for the type.

(Inherited from EdmMember)

Methods

AddAnnotation(String, Object)

Adds or updates an annotation with the specified name and value.

(Inherited from MetadataItem)
Create(String, TypeUsage, RelationshipType, RelationshipEndMember, RelationshipEndMember, IEnumerable<MetadataProperty>)

Creates a NavigationProperty instance from the specified parameters.

GetDependentProperties()

Where the given navigation property is on the dependent end of a referential constraint, returns the foreign key properties. Otherwise, returns an empty set. We will return the members in the order of the principal end key properties.

RemoveAnnotation(String)

Removes an annotation with the specified name.

(Inherited from MetadataItem)
ToString()

Returns the name of this member.

(Inherited from EdmMember)

Applies to