Share via


EdmNavigationProperty Class

Definition

Represents an EDM navigation property.

public sealed class EdmNavigationProperty : Microsoft.OData.Edm.EdmProperty, Microsoft.OData.Edm.IEdmNavigationProperty
type EdmNavigationProperty = class
    inherit EdmProperty
    interface IEdmNavigationProperty
    interface IEdmProperty
    interface IEdmNamedElement
    interface IEdmElement
    interface IEdmVocabularyAnnotatable
Public NotInheritable Class EdmNavigationProperty
Inherits EdmProperty
Implements IEdmNavigationProperty
Inheritance
Implements

Properties

ContainsTarget

Gets a value indicating whether the navigation target is contained inside the navigation source.

DeclaringType

Gets the type that this property belongs to.

(Inherited from EdmProperty)
Name

Gets the name of this element.

(Inherited from EdmNamedElement)
OnDelete

Gets the action to take when an instance of the declaring type is deleted.

Partner

Gets the partner of this navigation property.

PropertyKind

Gets the kind of this property.

ReferentialConstraint

Gets the referential constraint for this navigation, returning null if this is the principal end or if there is no referential constraint.

Type

Gets the type of this property.

(Inherited from EdmProperty)

Methods

CreateNavigationProperty(IEdmStructuredType, EdmNavigationPropertyInfo)

Creates a navigation property from the given information.

CreateNavigationPropertyWithPartner(EdmNavigationPropertyInfo, EdmNavigationPropertyInfo)

Creates two navigation properties representing an association between two entity types.

CreateNavigationPropertyWithPartner(String, IEdmTypeReference, IEnumerable<IEdmStructuralProperty>, IEnumerable<IEdmStructuralProperty>, Boolean, EdmOnDeleteAction, String, IEdmTypeReference, IEnumerable<IEdmStructuralProperty>, IEnumerable<IEdmStructuralProperty>, Boolean, EdmOnDeleteAction)

Creates two navigation properties representing an association between two entity types.

Extension Methods

GetSymbolicString(IEdmVocabularyAnnotatable)

Gets the symbolic string of an annotated element. In the next breaking change, it's better to add a property into IEdmVocabularyAnnotatable.

DeclaringEntityType(IEdmNavigationProperty)

Gets the entity type declaring this navigation property.

DependentProperties(IEdmNavigationProperty)

Gets the dependent properties of this navigation property, returning null if this is the principal entity or if there is no referential constraint.

GetPartnerPath(IEdmNavigationProperty)

Gets the partner path of a navigation property.

IsKey(IEdmProperty)

Determines whether the specified property is a key for its contained type.

IsPrincipal(IEdmNavigationProperty)

Gets whether this navigation property originates at the principal end of an association.

Location(IEdmElement)

Gets the location of this element.

PrincipalProperties(IEdmNavigationProperty)

Gets the principal properties of this navigation property, returning null if this is the principal entity or if there is no referential constraint.

TargetMultiplicity(IEdmNavigationProperty)

Gets the multiplicity of the target of this navigation.

ToEntityType(IEdmNavigationProperty)

Gets the entity type targeted by this navigation property.

VocabularyAnnotations(IEdmVocabularyAnnotatable, IEdmModel)

Gets an annotatable element's vocabulary annotations as seen from a particular model.

ToTraceString(IEdmProperty)

Returns the text representation of the current object.

Errors(IEdmElement)

Gets the errors, if any, that belong to this element or elements that this element contains. For example errors for a structural type include the errors of the type itself and errors of its declared properties. The method does not analyze elements referenced by this element. For example errors of a property do not include errors from its type.

IsBad(IEdmElement)

Returns true if this element contains errors returned by the Errors(IEdmElement) method.

Applies to