DbCollectionEntry.LoadAsync Method

 

Asynchronously loads the collection of entities from the database.

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

NameDescription
System_CAPS_pubmethodLoadAsync()

Asynchronously loads the collection of entities from the database. Note that entities that already exist in the context are not overwritten with values from the database.

System_CAPS_pubmethodLoadAsync(CancellationToken)

Asynchronously loads the collection of entities from the database. Note that entities that already exist in the context are not overwritten with values from the database.


DbCollectionEntry.LoadAsync Method ()

Asynchronously loads the collection of entities from the database. Note that entities that already exist in the context are 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.


DbCollectionEntry.LoadAsync Method (CancellationToken)

Asynchronously loads the collection of entities from the database. Note that entities that already exist in the context are 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.