NavigationExtensions NavigationExtensions Class

Definition

Extension methods for INavigation.

public static class NavigationExtensions
Public Module NavigationExtensions
Inheritance
System.ObjectSystem.Object
NavigationExtensionsNavigationExtensions

Methods

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

FindInverse(INavigation) FindInverse(INavigation)

Gets the navigation property on the other end of the relationship. Returns null if there is no navigation property defined on the other end of the relationship.

public static INavigation FindInverse(this INavigation navigation)
<ExtensionAttribute>
Public Shared Function FindInverse(navigation As INavigation) As INavigation
Parameters
navigation
INavigation INavigation

The navigation property to find the inverse of.

Returns

The inverse navigation, or null if none is defined.

GetHashCode() GetHashCode()

Inherited from System.Object

GetTargetType(INavigation) GetTargetType(INavigation)

Gets the entity type that a given navigation property will hold an instance of (or hold instances of if it is a collection navigation).

public static IEntityType GetTargetType(this INavigation navigation)
<ExtensionAttribute>
Public Shared Function GetTargetType(navigation As INavigation) As IEntityType
Parameters
navigation
INavigation INavigation

The navigation property to find the target entity type of.

Returns

The target entity type.

GetType() GetType()

Inherited from System.Object

IsCollection(INavigation) IsCollection(INavigation)

Gets a value indicating whether the given navigation property is a collection property.

public static bool IsCollection(this INavigation navigation)
<ExtensionAttribute>
Public Shared Function IsCollection(navigation As INavigation) As Boolean
Parameters
navigation
INavigation INavigation

The navigation property to check.

Returns
System.Boolean System.Boolean

True if this is a collection property, false if it is a reference property.

IsDependentToPrincipal(INavigation) IsDependentToPrincipal(INavigation)

Gets a value indicating whether the given navigation property is the navigation property on the dependent entity type that points to the principal entity.

public static bool IsDependentToPrincipal(this INavigation navigation)
<ExtensionAttribute>
Public Shared Function IsDependentToPrincipal(navigation As INavigation) As Boolean
Parameters
navigation
INavigation INavigation

The navigation property to check.

Returns
System.Boolean System.Boolean

True if the given navigation property is the navigation property on the dependent entity type that points to the principal entity, otherwise false.

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object