DbEntityEntry.ReloadAsync DbEntityEntry.ReloadAsync DbEntityEntry.ReloadAsync Method

Definition

Overloads

ReloadAsync() ReloadAsync() ReloadAsync()

Asynchronously reloads the entity from the database overwriting any property values with values from the database. The entity will be in the Unchanged state after calling this method.

ReloadAsync(CancellationToken) ReloadAsync(CancellationToken)

Asynchronously reloads the entity from the database overwriting any property values with values from the database. The entity will be in the Unchanged state after calling this method.

ReloadAsync() ReloadAsync() ReloadAsync()

Asynchronously reloads the entity from the database overwriting any property values with values from the database. The entity will be in the Unchanged state after calling this method.

public System.Threading.Tasks.Task ReloadAsync ();
member this.ReloadAsync : unit -> System.Threading.Tasks.Task
Public Function ReloadAsync () As Task

Returns

A task that represents the asynchronous operation.

Remarks

Multiple active operations on the same context instance are not supported. Use 'await' to ensure

that any asynchronous operations have completed before calling another method on this context.

ReloadAsync(CancellationToken) ReloadAsync(CancellationToken)

Asynchronously reloads the entity from the database overwriting any property values with values from the database. The entity will be in the Unchanged state after calling this method.

public System.Threading.Tasks.Task ReloadAsync (System.Threading.CancellationToken cancellationToken);
member this.ReloadAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

cancellationToken
CancellationToken CancellationToken CancellationToken

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

Returns

A task that represents the asynchronous operation.

Remarks

Multiple active operations on the same context instance are not supported. Use 'await' to ensure

that any asynchronous operations have completed before calling another method on this context.

Applies to