DbEntityEntry.GetDatabaseValuesAsync Method
Asynchronously queries the database for copies of the values of the tracked entity as they currently exist in the database.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | 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. |
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.
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.
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.
[DebuggerStepThroughAttribute]
public 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.