IRelatedEnd.LoadAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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. |
LoadAsync(CancellationToken)
Asynchronously loads the related object or objects into this related end with the default merge option.
public System.Threading.Tasks.Task LoadAsync (System.Threading.CancellationToken cancellationToken);
abstract member LoadAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Parameters
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for the task to complete.
Returns
A task that represents the asynchronous operation.
Remarks
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.
Applies to
LoadAsync(MergeOption, CancellationToken)
Asynchronously loads the related object or objects into the related end with the specified merge option.
public System.Threading.Tasks.Task LoadAsync (System.Data.Entity.Core.Objects.MergeOption mergeOption, System.Threading.CancellationToken cancellationToken);
abstract member LoadAsync : System.Data.Entity.Core.Objects.MergeOption * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Parameters
- mergeOption
- MergeOption
The MergeOption to use when merging objects into an existing EntityCollection<TEntity>.
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for the task to complete.
Returns
A task that represents the asynchronous operation.
Remarks
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.
Applies to
Entity Framework