IEntityEntryGraphIterator.TraverseGraphAsync 方法

定义

重载

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

遍历实体图,允许在每个节点上执行操作。

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

遍历实体图,允许在每个节点上执行操作。

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

Source:
IEntityEntryGraphIterator.cs
Source:
IEntityEntryGraphIterator.cs
Source:
IEntityEntryGraphIterator.cs

遍历实体图,允许在每个节点上执行操作。

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

类型参数

TState

状态对象的类型。

参数

node
EntityEntryGraphNode<TState>

正在访问的节点。

handleNode
Func<EntityEntryGraphNode<TState>,CancellationToken,Task<Boolean>>

调用以处理节点的委托。

cancellationToken
CancellationToken

等待 CancellationToken 任务完成时要观察的 。

返回

表示异步操作的任务。

例外

适用于

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

遍历实体图,允许在每个节点上执行操作。

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

类型参数

TState

状态对象的类型。

参数

node
EntityEntryGraphNode

正在访问的节点。

state
TState

任意状态对象。

handleNode
Func<EntityEntryGraphNode,TState,CancellationToken,Task<Boolean>>

调用以处理节点的委托。

cancellationToken
CancellationToken

等待 CancellationToken 任务完成时要观察的 。

返回

表示异步操作的任务。

适用于