Share via


HiLoValueGenerator<TValue>.NextAsync Method

Definition

Gets a value to be assigned to a property.

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)

Parameters

entry
EntityEntry

The change tracking entry of the entity for which the value is being generated.

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for the task to complete.

Returns

Task<TValue>
ValueTask<TValue>

The value to be assigned to a property.

Exceptions

Applies to