EntityReference<TEntity>.LoadAsync Method

 

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 the related end with the default merge option.(Inherited from RelatedEnd.)

System_CAPS_pubmethodLoadAsync(MergeOption, CancellationToken)

Asynchronously loads the related entity or entities into the related end using the default merge option.(Overrides RelatedEnd.LoadAsync(MergeOption, CancellationToken).)


EntityReference<TEntity>.LoadAsync Method (MergeOption, CancellationToken)

Asynchronously loads the related entity or entities into the related end using the default merge option.

[DebuggerStepThroughAttribute]
public override Task LoadAsync(
	MergeOption mergeOption,
	CancellationToken cancellationToken
)

Parameters

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

The merging options.

cancellationToken
Type: System.Threading.CancellationToken

A CancellationToken to observe while waiting for the task to complete.

Return Value

Type: System.Threading.Tasks.Task

The loaded related entity or entities into the related end.