IEntityEntryGraphIterator.TraverseGraphAsync Method
Definition
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.
Overloads
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. |
TraverseGraphAsync<TState>(EntityEntryGraphNode<TState>, Func<EntityEntryGraphNode<TState>,CancellationToken,Task<Boolean>>, CancellationToken)
- Source:
- IEntityEntryGraphIterator.cs
- Source:
- IEntityEntryGraphIterator.cs
- Source:
- IEntityEntryGraphIterator.cs
Traverses a graph of entities allowing an action to be taken at each node.
public System.Threading.Tasks.Task TraverseGraphAsync<TState> (Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntryGraphNode<TState> node, Func<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntryGraphNode<TState>,System.Threading.CancellationToken,System.Threading.Tasks.Task<bool>> handleNode, System.Threading.CancellationToken cancellationToken = default);
abstract member TraverseGraphAsync : Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntryGraphNode<'State> * Func<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntryGraphNode<'State>, System.Threading.CancellationToken, System.Threading.Tasks.Task<bool>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function TraverseGraphAsync(Of TState) (node As EntityEntryGraphNode(Of TState), handleNode As Func(Of EntityEntryGraphNode(Of TState), CancellationToken, Task(Of Boolean)), Optional cancellationToken As CancellationToken = Nothing) As Task
Type Parameters
- TState
The type of the state object.
Parameters
The node that is being visited.
- handleNode
- Func<EntityEntryGraphNode<TState>,CancellationToken,Task<Boolean>>
A delegate to call to handle the node.
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for the task to complete.
Returns
A task that represents the asynchronous operation.
Exceptions
If the CancellationToken is canceled.
Applies to
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.
public System.Threading.Tasks.Task TraverseGraphAsync<TState> (Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntryGraphNode node, TState state, Func<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntryGraphNode,TState,System.Threading.CancellationToken,System.Threading.Tasks.Task<bool>> handleNode, System.Threading.CancellationToken cancellationToken = default);
abstract member TraverseGraphAsync : Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntryGraphNode * 'State * Func<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntryGraphNode, 'State, System.Threading.CancellationToken, System.Threading.Tasks.Task<bool>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function TraverseGraphAsync(Of TState) (node As EntityEntryGraphNode, state As TState, handleNode As Func(Of EntityEntryGraphNode, TState, CancellationToken, Task(Of Boolean)), Optional cancellationToken As CancellationToken = Nothing) As Task
Type Parameters
- TState
The type of the state object.
Parameters
- node
- EntityEntryGraphNode
The node that is being visited.
- state
- TState
An arbitrary state object.
- handleNode
- Func<EntityEntryGraphNode,TState,CancellationToken,Task<Boolean>>
A delegate to call to handle the node.
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for the task to complete.
Returns
A task that represents the asynchronous operation.
Applies to
Entity Framework