EdmNavigationProperty Class
Represents an EDM navigation property.
Inheritance Hierarchy
System.Object
Microsoft.Data.Edm.Library.EdmElement
Microsoft.Data.Edm.Library.EdmNamedElement
Microsoft.Data.Edm.Library.EdmProperty
Microsoft.Data.Edm.Library.EdmNavigationProperty
Namespace: Microsoft.Data.Edm.Library
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Syntax
'Declaration
Public NotInheritable Class EdmNavigationProperty _
Inherits EdmProperty _
Implements IEdmNavigationProperty, IEdmProperty, IEdmNamedElement, IEdmVocabularyAnnotatable, _
IEdmElement
'Usage
Dim instance As EdmNavigationProperty
public sealed class EdmNavigationProperty : EdmProperty,
IEdmNavigationProperty, IEdmProperty, IEdmNamedElement, IEdmVocabularyAnnotatable, IEdmElement
public ref class EdmNavigationProperty sealed : public EdmProperty,
IEdmNavigationProperty, IEdmProperty, IEdmNamedElement, IEdmVocabularyAnnotatable, IEdmElement
[<SealedAttribute>]
type EdmNavigationProperty =
class
inherit EdmProperty
interface IEdmNavigationProperty
interface IEdmProperty
interface IEdmNamedElement
interface IEdmVocabularyAnnotatable
interface IEdmElement
end
public final class EdmNavigationProperty extends EdmProperty implements IEdmNavigationProperty, IEdmProperty, IEdmNamedElement, IEdmVocabularyAnnotatable, IEdmElement
The EdmNavigationProperty type exposes the following members.
Properties
Name | Description | |
---|---|---|
ContainsTarget | Gets a value indicating whether the navigation target is contained inside the navigation source. | |
DeclaringEntityType | Gets the entity type that this navigation property belongs to. | |
DeclaringType | Gets the type that this property belongs to. (Inherited from EdmProperty.) | |
DependentProperties | Gets or sets the dependent properties of the association this navigation property expresses. | |
IsPrincipal | Gets a value indicating whether this navigation property is from the principal end of the association. | |
Name | Gets the name of this element. (Inherited from EdmNamedElement.) | |
OnDelete | Gets the action to take when an element of the defining type is deleted. | |
Partner | Gets the navigation property from this properties destination back to the declaring type of this property. | |
PropertyKind | Gets the kind of this property. (Overrides EdmProperty.PropertyKind.) | |
Type | Gets or sets the type of this property. (Inherited from EdmProperty.) |
Top
Methods
Name | Description | |
---|---|---|
CreateNavigationPropertyWithPartner(EdmNavigationPropertyInfo, EdmNavigationPropertyInfo) | Creates two navigation properties representing an association between two entity types. | |
CreateNavigationPropertyWithPartner(String, IEdmTypeReference, IEnumerable<IEdmStructuralProperty>, Boolean, EdmOnDeleteAction, String, IEdmTypeReference, IEnumerable<IEdmStructuralProperty>, Boolean, EdmOnDeleteAction) | Creates two navigation properties representing an association between two entity types. | |
Equals | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Top
Extension Methods
Name | Description | |
---|---|---|
DeclaringEntityType | Gets the entity type declaring this navigation property. (Defined by ExtensionMethods.) | |
Errors | 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. (Defined by ValidationExtensionMethods.) | |
GetPrimary | Gets the primary end of a pair of partnered navigation properties, selecting the principal end if there is one and making a stable, arbitrary choice otherwise. (Defined by SerializationExtensionMethods.) | |
IsBad | Indicates whether this element contains errors returned by the Errors(IEdmElement) method. (Defined by ValidationExtensionMethods.) | |
Location | Gets the location of the specified item. (Defined by ExtensionMethods.) | |
Multiplicity | Gets the multiplicity of this end of a bidirectional relationship between this navigation property and its partner. (Defined by ExtensionMethods.) | |
ToEntityType | Gets the entity type targeted by this navigation property. (Defined by ExtensionMethods.) | |
ToTraceString | Returns the text representation of the current object. (Defined by ToTraceStringExtensionMethods.) | |
VocabularyAnnotations | Gets an annotatable element's vocabulary annotations as seen from a particular model. (Defined by ExtensionMethods.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.