Compartir a través de


HiLoValueGenerator<TValue>.NextAsync Método

Definición

Obtiene un valor que se va a asignar a una propiedad .

public override System.Threading.Tasks.Task<TValue> NextAsync (Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry entry, System.Threading.CancellationToken cancellationToken = default);
public override System.Threading.Tasks.ValueTask<TValue> NextAsync (Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry entry, System.Threading.CancellationToken cancellationToken = default);
override this.NextAsync : Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Value>
override this.NextAsync : Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<'Value>
Public Overrides Function NextAsync (entry As EntityEntry, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TValue)
Public Overrides Function NextAsync (entry As EntityEntry, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of TValue)

Parámetros

entry
EntityEntry

Entrada de seguimiento de cambios de la entidad para la que se genera el valor.

cancellationToken
CancellationToken

que CancellationToken se va a observar mientras espera a que se complete la tarea.

Devoluciones

Task<TValue>
ValueTask<TValue>

Valor que se va a asignar a una propiedad.

Excepciones

Se aplica a