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::GetDatabaseValuesAsync Method

Entity Framework 6.0
 

Asynchronously queries the database for copies of the values of the tracked entity as they currently exist in the database.

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

NameDescription
System_CAPS_pubmethodGetDatabaseValuesAsync()

Asynchronously queries the database for copies of the values of the tracked entity as they currently exist in the database. Note that changing the values in the returned dictionary will not update the values in the database. If the entity is not found in the database then null is returned.

System_CAPS_pubmethodGetDatabaseValuesAsync(CancellationToken)

Asynchronously queries the database for copies of the values of the tracked entity as they currently exist in the database. Note that changing the values in the returned dictionary will not update the values in the database. If the entity is not found in the database then null is returned.

Return to top

DbEntityEntry::GetDatabaseValuesAsync Method ()

Asynchronously queries the database for copies of the values of the tracked entity as they currently exist in the database. Note that changing the values in the returned dictionary will not update the values in the database. If the entity is not found in the database then null is returned.

public:
Task<DbPropertyValues^>^ GetDatabaseValuesAsync()

Return Value

Type: System.Threading.Tasks::Task<DbPropertyValues^>^

A task that represents the asynchronous operation. The task result contains the store values.

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::GetDatabaseValuesAsync Method (CancellationToken)

Asynchronously queries the database for copies of the values of the tracked entity as they currently exist in the database. Note that changing the values in the returned dictionary will not update the values in the database. If the entity is not found in the database then null is returned.

public:
[DebuggerStepThroughAttribute]
Task<DbPropertyValues^>^ GetDatabaseValuesAsync(
	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<DbPropertyValues^>^

A task that represents the asynchronous operation. The task result contains the store values.

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: