Table of Contents

Class EntityEntryGraphNode<TState>

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<TState> : EntityEntryGraphNode, IInfrastructure<InternalEntityEntry>

Type Parameters

TState
Inheritance
EntityEntryGraphNode<TState>
Implements
Inherited Members
Extension Methods

Remarks

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

Constructors

EntityEntryGraphNode(EntityEntry, TState, EntityEntry?, INavigationBase?)

Creates a new node in the entity graph.

public EntityEntryGraphNode(EntityEntry entry, TState state, EntityEntry? sourceEntry, INavigationBase? inboundNavigation)

Parameters

entry EntityEntry

The entry for the entity represented by this node.

state TState

A state object that will be available when processing each node.

sourceEntry EntityEntry

The entry from which this node was reached, or null if this is the root node.

inboundNavigation INavigationBase

The navigation from the source node to this node, or null if this is the root node.

EntityEntryGraphNode(InternalEntityEntry, TState, 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, TState state, InternalEntityEntry? sourceEntry, INavigationBase? inboundNavigation)

Parameters

entry InternalEntityEntry
state TState
sourceEntry InternalEntityEntry
inboundNavigation INavigationBase

Properties

NodeState

Gets or sets state that will be available to all nodes that are visited after this node.

public virtual TState NodeState { get; set; }

Property Value

TState

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 override EntityEntryGraphNode CreateNode(EntityEntryGraphNode currentNode, InternalEntityEntry internalEntityEntry, INavigationBase reachedVia)

Parameters

currentNode EntityEntryGraphNode
internalEntityEntry InternalEntityEntry
reachedVia INavigationBase

Returns

EntityEntryGraphNode