IEntityEntryGraphIterator Interface

Definition

A service to traverse a graph of entities and perform some action on at each node.

The service lifetime is Singleton. This means a single instance is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.

public interface IEntityEntryGraphIterator
type IEntityEntryGraphIterator = interface
Public Interface IEntityEntryGraphIterator

Remarks

See Tracking entities in EF Core for more information.

Methods

TraverseGraph<TState>(EntityEntryGraphNode, TState, Func<EntityEntryGraphNode,TState,Boolean>)

Traverses a graph of entities allowing an action to be taken at each node.

TraverseGraph<TState>(EntityEntryGraphNode<TState>, Func<EntityEntryGraphNode<TState>,Boolean>)

Traverses a graph of entities allowing an action to be taken at each node.

TraverseGraphAsync<TState>(EntityEntryGraphNode, TState, Func<EntityEntryGraphNode,TState,CancellationToken,Task<Boolean>>, CancellationToken)

Traverses a graph of entities allowing an action to be taken at each node.

TraverseGraphAsync<TState>(EntityEntryGraphNode<TState>, Func<EntityEntryGraphNode<TState>,CancellationToken,Task<Boolean>>, CancellationToken)

Traverses a graph of entities allowing an action to be taken at each node.

Applies to