Lingua

IEntityEntryGraphIterator.TraverseGraphAsync Metodo

Definizione

Overload

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

Origine:
IEntityEntryGraphIterator.cs
Origine:
IEntityEntryGraphIterator.cs
Origine:
IEntityEntryGraphIterator.cs
Origine:
IEntityEntryGraphIterator.cs
Origine:
IEntityEntryGraphIterator.cs

Attraversa un grafico di entità che consente di eseguire un'azione in ogni nodo.

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

Parametri di tipo

TState

Tipo dell'oggetto di stato.

Parametri

node
EntityEntryGraphNode<TState>

Nodo visitato.

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

Delegato da chiamare per gestire il nodo.

cancellationToken
CancellationToken

Oggetto CancellationToken da osservare durante l'attesa del completamento dell'attività.

Valori restituiti

Attività che rappresenta l'operazione asincrona.

Eccezioni

Se l'oggetto CancellationToken viene annullato.

Si applica a

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

Attraversa un grafico di entità che consente di eseguire un'azione in ogni nodo.

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

Parametri di tipo

TState

Tipo dell'oggetto di stato.

Parametri

node
EntityEntryGraphNode

Nodo visitato.

state
TState

Oggetto stato arbitrario.

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

Delegato da chiamare per gestire il nodo.

cancellationToken
CancellationToken

Oggetto CancellationToken da osservare durante l'attesa del completamento dell'attività.

Valori restituiti

Attività che rappresenta l'operazione asincrona.

Si applica a