Share via


IEntityEntryGraphIterator Interface

Definition

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

public interface IEntityEntryGraphIterator
type IEntityEntryGraphIterator = interface
Public Interface IEntityEntryGraphIterator

Remarks

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.

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

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