ReferenceEntry.LoadAsync Method
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.
LoadAsync(CancellationToken) |
Loads entities referenced by this navigation property, unless IsLoaded
is already set to |
LoadAsync(LoadOptions, CancellationToken) |
Loads entities referenced by this navigation property, unless IsLoaded
is already set to |
- Source:
- ReferenceEntry.cs
- Source:
- ReferenceEntry.cs
- Source:
- ReferenceEntry.cs
- Source:
- ReferenceEntry.cs
- Source:
- ReferenceEntry.cs
Loads entities referenced by this navigation property, unless IsLoaded
is already set to true
.
public override System.Threading.Tasks.Task LoadAsync (System.Threading.CancellationToken cancellationToken = default);
override this.LoadAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function LoadAsync (Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for the task to complete.
Returns
A task that represents the asynchronous save operation.
Exceptions
If the CancellationToken is canceled.
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.
See Accessing tracked entities in EF Core and Loading related entities for more information and examples.
Applies to
- Source:
- ReferenceEntry.cs
- Source:
- ReferenceEntry.cs
Loads entities referenced by this navigation property, unless IsLoaded
is already set to true
.
public override System.Threading.Tasks.Task LoadAsync (Microsoft.EntityFrameworkCore.ChangeTracking.LoadOptions options, System.Threading.CancellationToken cancellationToken = default);
override this.LoadAsync : Microsoft.EntityFrameworkCore.ChangeTracking.LoadOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function LoadAsync (options As LoadOptions, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- options
- LoadOptions
Options to control the way related entities are loaded.
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for the task to complete.
Returns
A task that represents the asynchronous save operation.
Exceptions
If the CancellationToken is canceled.
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.
See Accessing tracked entities in EF Core and Loading related entities for more information and examples.
Applies to
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: