EntityCollection<TEntity>.LoadAsync Method
Namespace:
System.Data.Entity.Core.Objects.DataClasses
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | LoadAsync(CancellationToken) | Asynchronously loads the related object or objects into the related end with the default merge option.(Inherited from RelatedEnd.) |
![]() | LoadAsync(MergeOption, CancellationToken) | Asynchronously loads the related entity or entities into the related end using the default merge option.(Overrides RelatedEnd.LoadAsync(MergeOption, CancellationToken).) |
EntityCollection<TEntity>.LoadAsync Method (MergeOption, CancellationToken)
Asynchronously loads the related entity or entities into the related end using the default merge option.
public override Task LoadAsync( MergeOption mergeOption, CancellationToken cancellationToken )
Parameters
- mergeOption
-
Type:
System.Data.Entity.Core.Objects.MergeOption
The merging option.
- cancellationToken
-
Type:
System.Threading.CancellationToken
A CancellationToken to observe while waiting for the task to complete.