Entry. Reload Async(CancellationToken) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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, unless the entity does not exist in the database, in which case the entity will be Detached. Finally, calling Reload on an Added entity that does not exist in the database is a no-op. Note, however, that an Added entity may not yet have had its permanent key value created.
public virtual System.Threading.Tasks.Task ReloadAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member ReloadAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task override this.ReloadAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ReloadAsync (Optional cancellationToken As CancellationToken = Nothing) As Task
A CancellationToken to observe while waiting for the task to complete.
A task that represents the asynchronous operation.
See Accessing tracked entities in EF Core for more information.
Submit and view feedback for