MutableEntityTypeExtensions.GetDeclaredNavigations(IMutableEntityType) Method

Definition

Gets all navigation properties declared on the given IMutableEntityType.

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(IMutableEntityType) to also return navigation properties declared on base types.

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

Parameters

entityType
IMutableEntityType

The entity type.

Returns

Declared navigation properties.

Applies to