EntityTypeExtensions.GetDeclaredNavigations(IEntityType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets all navigation properties declared on the given IEntityType.
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(IEntityType) to also return navigation properties declared on base types.
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.INavigation> GetDeclaredNavigations (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member GetDeclaredNavigations : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> seq<Microsoft.EntityFrameworkCore.Metadata.INavigation>
<Extension()>
Public Function GetDeclaredNavigations (entityType As IEntityType) As IEnumerable(Of INavigation)
Parameters
- entityType
- IEntityType
The entity type.
Returns
Declared navigation properties.
Applies to
Entity Framework