Share via


DbEntityEntry<TEntity>.GetDatabaseValuesAsync Method

Definition

Overloads

GetDatabaseValuesAsync()

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.

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

GetDatabaseValuesAsync()

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 System.Threading.Tasks.Task<System.Data.Entity.Infrastructure.DbPropertyValues> GetDatabaseValuesAsync ();
member this.GetDatabaseValuesAsync : unit -> System.Threading.Tasks.Task<System.Data.Entity.Infrastructure.DbPropertyValues>
Public Function GetDatabaseValuesAsync () As Task(Of DbPropertyValues)

Returns

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

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

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

[System.Diagnostics.DebuggerStepThrough]
public System.Threading.Tasks.Task<System.Data.Entity.Infrastructure.DbPropertyValues> GetDatabaseValuesAsync (System.Threading.CancellationToken cancellationToken);
member this.GetDatabaseValuesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Data.Entity.Infrastructure.DbPropertyValues>

Parameters

cancellationToken
CancellationToken

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

Returns

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

Attributes

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