IReadOnlyEntityType.GetDeclaredNavigations 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 this entity type.
public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyNavigation> GetDeclaredNavigations ();
abstract member GetDeclaredNavigations : unit -> seq<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyNavigation>
Public Function GetDeclaredNavigations () As IEnumerable(Of IReadOnlyNavigation)
Returns
Declared navigation properties.
Remarks
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() to also return navigation properties declared on base types.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework