Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

NavigationEntry Class

Definition

Namespace:
Microsoft.EntityFrameworkCore.ChangeTracking
Assembly:
Microsoft.EntityFrameworkCore.dll
Package:
Microsoft.EntityFrameworkCore v1.1.6
Package:
Microsoft.EntityFrameworkCore v10.0.0
Package:
Microsoft.EntityFrameworkCore v2.0.3
Package:
Microsoft.EntityFrameworkCore v2.1.11
Package:
Microsoft.EntityFrameworkCore v2.2.6
Package:
Microsoft.EntityFrameworkCore v3.0.0
Package:
Microsoft.EntityFrameworkCore v3.1.0
Package:
Microsoft.EntityFrameworkCore v5.0.0
Package:
Microsoft.EntityFrameworkCore v6.0.0
Package:
Microsoft.EntityFrameworkCore v7.0.0
Package:
Microsoft.EntityFrameworkCore v8.0.0
Package:
Microsoft.EntityFrameworkCore v9.0.0
Source:
NavigationEntry.cs
Source:
NavigationEntry.cs
Source:
NavigationEntry.cs
Source:
NavigationEntry.cs
Source:
NavigationEntry.cs
Source:
NavigationEntry.cs
Source:
NavigationEntry.cs
Source:
NavigationEntry.cs
Source:
NavigationEntry.cs
Source:
NavigationEntry.cs

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.

Provides access to change tracking and loading information for a navigation property that associates this entity to one or more other entities.

public abstract class NavigationEntry : Microsoft.EntityFrameworkCore.ChangeTracking.MemberEntry
[System.Runtime.CompilerServices.Nullable(0)]
public abstract class NavigationEntry : Microsoft.EntityFrameworkCore.ChangeTracking.MemberEntry, Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry>
[System.Runtime.CompilerServices.Nullable(0)]
public abstract class NavigationEntry : Microsoft.EntityFrameworkCore.ChangeTracking.MemberEntry
type NavigationEntry = class
 inherit MemberEntry
[<System.Runtime.CompilerServices.Nullable(0)>]
type NavigationEntry = class
 inherit MemberEntry
 interface IInfrastructure<InternalEntityEntry>
[<System.Runtime.CompilerServices.Nullable(0)>]
type NavigationEntry = class
 inherit MemberEntry
Public MustInherit Class NavigationEntry
Inherits MemberEntry
Public MustInherit Class NavigationEntry
Inherits MemberEntry
Implements IInfrastructure(Of InternalEntityEntry)
Inheritance
NavigationEntry
Derived
Attributes
Implements
IInfrastructure<Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry>

Remarks

Instances of this class are returned from methods when using the ChangeTracker API and it is not designed to be directly constructed in your application code.

See Accessing tracked entities in EF Core and Loading related entities for more information and examples.

Constructors

Name Description
NavigationEntry(InternalEntityEntry, INavigation)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

NavigationEntry(InternalEntityEntry, INavigationBase, Boolean)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

NavigationEntry(InternalEntityEntry, INavigationBase)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

NavigationEntry(InternalEntityEntry, String, Boolean)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

Properties

Name Description
CurrentValue

Gets or sets the value currently assigned to this property. If the current value is set using this property, the change tracker is aware of the change and DetectChanges() is not required for the context to detect the change.

(Inherited from MemberEntry)
EntityEntry

The EntityEntry to which this member belongs.

(Inherited from MemberEntry)
InternalEntityEntry

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

InternalEntry

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

(Inherited from MemberEntry)
IsLoaded

Gets or sets a value indicating whether the entity or entities referenced by this navigation property are known to be loaded.

IsModified

Gets or sets a value indicating whether any of foreign key property values associated with this navigation property have been modified and should be updated in the database when SaveChanges() is called.

IsModified

For non-navigation properties, gets or sets a value indicating whether the value of this property has been modified and should be updated in the database when SaveChanges() is called.

(Inherited from MemberEntry)
Metadata

Gets the metadata that describes the facets of this property and how it maps to the database.

Methods

Name Description
Finder(Type)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Load()

Loads the entities referenced by this navigation property, unless IsLoaded is already set to true.

Load(LoadOptions)

Loads the entities referenced by this navigation property, unless IsLoaded is already set to true.

LoadAsync(CancellationToken)

Loads entities referenced by this navigation property, unless IsLoaded is already set to true.

LoadAsync(LoadOptions, CancellationToken)

Loads entities referenced by this navigation property, unless IsLoaded is already set to true.

Query()

Returns the query that would be used by Load() to load entities referenced by this navigation property.

Explicit Interface Implementations

Name Description
IInfrastructure<IInternalEntry>.Instance

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

(Inherited from MemberEntry)
IInfrastructure<InternalEntityEntry>.Instance

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

IInfrastructure<InternalEntityEntry>.Instance

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

(Inherited from MemberEntry)

Extension Methods

Name Description
GetInfrastructure<T>(IInfrastructure<T>)

Gets the value from a property that is being hidden using IInfrastructure<T>.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

Applies to


Feedback

Was this page helpful?