DbReferenceEntry.LoadAsync Method

 

Asynchronously loads the entity from the database.

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

NameDescription
System_CAPS_pubmethodLoadAsync()

Asynchronously loads the entity from the database. Note that if the entity already exists in the context, then it will not overwritten with values from the database.

System_CAPS_pubmethodLoadAsync(CancellationToken)

Asynchronously loads the entity from the database. Note that if the entity already exists in the context, then it will not overwritten with values from the database.


DbReferenceEntry.LoadAsync Method ()

Asynchronously loads the entity from the database. Note that if the entity already exists in the context, then it will not overwritten with values from the database.

public Task LoadAsync()

Return Value

Type: System.Threading.Tasks.Task

A task that represents the asynchronous operation.

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.


DbReferenceEntry.LoadAsync Method (CancellationToken)

Asynchronously loads the entity from the database. Note that if the entity already exists in the context, then it will not overwritten with values from the database.

public Task LoadAsync(
	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

A task that represents the asynchronous operation.

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.