DbEntityEntry.GetDatabaseValuesAsync DbEntityEntry.GetDatabaseValuesAsync DbEntityEntry.GetDatabaseValuesAsync Method

Definition

Overloads

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

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

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