DbReferenceEntry.LoadAsync Method
Asynchronously loads the entity from the database.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | LoadAsync() | Asynchronously loads the entity from the database. Note that if the entity already exists in the context, then it will not overwritten with values from the database. |
![]() | LoadAsync(CancellationToken) | Asynchronously loads the entity from the database. Note that if the entity already exists in the context, then it will not overwritten with values from the database. |
DbReferenceEntry.LoadAsync Method ()
Asynchronously loads the entity from the database. Note that if the entity already exists in the context, then it will 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.
DbReferenceEntry.LoadAsync Method (CancellationToken)
Asynchronously loads the entity from the database. Note that if the entity already exists in the context, then it will 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.