src/Shared/EntityFramework/Internal/EntityEntries/InternalEntityEntry.cs
// <summary>
// An asynchronous version of GetDatabaseValues, which
// queries the database for copies of the values of the tracked entity as they currently exist in the database.
// </summary>
// <returns> A task containing the store values. </returns>
An asynchronous version of GetDatabaseValues, which
queries the database for copies of the values of the tracked entity as they currently exist in the database.
An asynchronous version of GetDatabaseValues which queries the database for copies of the values of the tracked entity as they currently exist in the database .
public virtual async Task<InternalPropertyValues> GetDatabaseValuesAsync(CancellationToken cancellationToken)
        {
            ValidateStateToGetValues("GetDatabaseValuesAsync", EntityState.Added);
            cancellationToken.ThrowIfCancellationRequested();
            var dataRecord =
                await GetDatabaseValuesQuery().SingleOrDefaultAsync(cancellationToken).WithCurrentCulture();
            return dataRecord == null ? null : new ClonedPropertyValues(OriginalValues, dataRecord);
        }
public virtual async Task < InternalPropertyValues > GetDatabaseValuesAsync ( CancellationToken cancellationToken ) { ValidateStateToGetValues ( " " , EntityState . Added ) ; cancellationToken . ThrowIfCancellationRequested ( ) ; var dataRecord = await GetDatabaseValuesQuery ( ) . SingleOrDefaultAsync ( cancellationToken ) . WithCurrentCulture ( ) ; return dataRecord == null ? null : new ClonedPropertyValues ( OriginalValues , dataRecord ) ; }
An asynchronous version of GetDatabaseValues, which
queries the database for copies of the values of the tracked entity as they currently exist in the database.
An asynchronous version of GetDatabaseValues which queries the database for copies of the values of the tracked entity as they currently exist in the database .
A task containing the store values.
A task containing the store values .
cancellationToken
CancellationToken