DbCollectionEntry<TEntity, TElement>.LoadAsync Method
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | LoadAsync() | Asynchronously loads the collection of entities from the database. Note that entities that already exist in the context are not overwritten with values from the database. |
![]() | LoadAsync(CancellationToken) | Asynchronously loads the collection of entities from the database. Note that entities that already exist in the context are not overwritten with values from the database. |
DbCollectionEntry<TEntity, TElement>.LoadAsync Method ()
Asynchronously loads the collection of entities from the database. Note that entities that already exist in the context are not overwritten with values from the database.
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.
DbCollectionEntry<TEntity, TElement>.LoadAsync Method (CancellationToken)
Asynchronously loads the collection of entities from the database. Note that entities that already exist in the context are not overwritten with values from the database.
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.