IRelatedEnd.LoadAsync Method

 

Asynchronously loads the related entity or entities into the related end.

Namespace:   System.Data.Entity.Core.Objects.DataClasses
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodLoadAsync(CancellationToken)

Asynchronously loads the related object or objects into this related end with the default merge option.

System_CAPS_pubmethodLoadAsync(MergeOption, CancellationToken)

Asynchronously loads the related object or objects into the related end with the specified merge option.


IRelatedEnd.LoadAsync Method (CancellationToken)

Asynchronously loads the related object or objects into this related end with the default merge option.

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.


IRelatedEnd.LoadAsync Method (MergeOption, CancellationToken)

Asynchronously loads the related object or objects into the related end with the specified merge option.

Task LoadAsync(
	MergeOption mergeOption,
	CancellationToken cancellationToken
)

Parameters

mergeOption
Type: System.Data.Entity.Core.Objects.MergeOption

The MergeOption to use when merging objects into an existing EntityCollection<TEntity>.

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.