Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
IEntityEntryGraphIterator Interface
Definition
- Namespace:
- Microsoft.EntityFrameworkCore.ChangeTracking
- Assembly:
- Microsoft.EntityFrameworkCore.dll
- Package:
- Microsoft.EntityFrameworkCore v10.0.0
- 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:
- IEntityEntryGraphIterator.cs
- Source:
- IEntityEntryGraphIterator.cs
- Source:
- IEntityEntryGraphIterator.cs
- Source:
- IEntityEntryGraphIterator.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.
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
| Name | Description |
|---|---|
| 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
Entity Framework
Feedback
Was this page helpful?
