ConventionEntityTypeExtensions.GetDeclaredNavigations Method

Definition

Gets all navigation properties declared on the given IConventionEntityType.

This method does not return navigation properties declared on base types. It is useful when iterating over all entity types to avoid processing the same navigation property more than once. Use GetNavigations(IConventionEntityType) to also return navigation properties declared on base types.

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation> GetDeclaredNavigations (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
static member GetDeclaredNavigations : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation>
<Extension()>
Public Function GetDeclaredNavigations (entityType As IConventionEntityType) As IEnumerable(Of IConventionNavigation)

Parameters

entityType
IConventionEntityType

The entity type.

Returns

Declared navigation properties.

Applies to