IRelatedEnd.LoadAsync Method
Asynchronously loads the related entity or entities into the related end.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | LoadAsync(CancellationToken) | Asynchronously loads the related object or objects into this related end with the default merge option. |
![]() | LoadAsync(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.
Parameters
- cancellationToken
-
Type:
System.Threading.CancellationToken
A CancellationToken to observe while waiting for the task to complete.
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.
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.
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.