Table of Contents

Class EntityEntryGraphNode

Namespace
Microsoft.EntityFrameworkCore.ChangeTracking
Assembly
Microsoft.EntityFrameworkCore.dll

Provides access to change tracking information and operations for a node in a graph of entities that is being traversed.

public class EntityEntryGraphNode : IInfrastructure<InternalEntityEntry>
Inheritance
EntityEntryGraphNode
Implements
Derived
Inherited Members
Extension Methods

Remarks

See TrackGraph(object, Action<EntityEntryGraphNode>) for information on how graph nodes are used.

See Tracking entities in EF Core for more information and examples.

Constructors

EntityEntryGraphNode(InternalEntityEntry, 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.

[EntityFrameworkInternal]
public EntityEntryGraphNode(InternalEntityEntry entry, InternalEntityEntry? sourceEntry, INavigationBase? inboundNavigation)

Parameters

entry InternalEntityEntry
sourceEntry InternalEntityEntry
inboundNavigation INavigationBase

Properties

Entry

An EntityEntry for the entity instance represented by this node.

public virtual EntityEntry Entry { get; }

Property Value

EntityEntry

Remarks

See TrackGraph(object, Action<EntityEntryGraphNode>) for information on how graph nodes are used.

InboundNavigation

Gets the navigation property that is being traversed to reach this node in the graph.

public virtual INavigationBase? InboundNavigation { get; }

Property Value

INavigationBase

Remarks

See TrackGraph(object, Action<EntityEntryGraphNode>) for information on how graph nodes are used.

SourceEntry

An EntityEntry for the entity instance from which a navigation property was traversed to the instance represented by this node.

public virtual EntityEntry? SourceEntry { get; }

Property Value

EntityEntry

Remarks

See TrackGraph(object, Action<EntityEntryGraphNode>) for information on how graph nodes are used.

Methods

CreateNode(EntityEntryGraphNode, 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.

[EntityFrameworkInternal]
public virtual EntityEntryGraphNode CreateNode(EntityEntryGraphNode currentNode, InternalEntityEntry internalEntityEntry, INavigationBase reachedVia)

Parameters

currentNode EntityEntryGraphNode
internalEntityEntry InternalEntityEntry
reachedVia INavigationBase

Returns

EntityEntryGraphNode