Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DbEntityEntry<TEntity>::ReloadAsync Method

Entity Framework 6.0
 

Asynchronously reloads the entity from the database overwriting any property values with values from the database.

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodReloadAsync()

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.

System_CAPS_pubmethodReloadAsync(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.

The entity will be in the Unchanged state after calling this method.

Return to top

DbEntityEntry<TEntity>::ReloadAsync Method ()

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:
Task^ ReloadAsync()

Return Value

Type: System.Threading.Tasks::Task^

A task that represents the asynchronous operation.

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.

Return to top

DbEntityEntry<TEntity>::ReloadAsync Method (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:
Task^ ReloadAsync(
	CancellationToken cancellationToken
)

Parameters

cancellationToken
Type: System.Threading::CancellationToken

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

Return Value

Type: System.Threading.Tasks::Task^

A task that represents the asynchronous operation.

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.

Return to top
Show: