ILazyLoader Interface
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.
A service that can be injected into entities to give them the capability of loading navigation properties automatically the first time they are accessed.
public interface ILazyLoader
public interface ILazyLoader : IDisposable
type ILazyLoader = interface
type ILazyLoader = interface
interface IDisposable
Public Interface ILazyLoader
Public Interface ILazyLoader
Implements IDisposable
- Implements
The service lifetime is 'ServiceLifetime.Transient'. This means that each entity instance will use its own instance of this service. The implementation may depend on other services registered with any lifetime. The implementation does not need to be thread-safe.
See Lazy loading for more information and examples.
Dispose() |
Disposes the loader. |
Is |
Gets whether or not the given navigation as known to be completely loaded or known to be no longer completely loaded. |
Load(Object, String) |
Loads a navigation property if it has not already been loaded. |
Load |
Loads a navigation property if it has not already been loaded. |
Set |
Sets the given navigation as known to be completely loaded or known to be no longer completely loaded. |
Load<TRelated>(ILazy |
Loads a navigation property if it has not already been loaded. |
Proizvod | Verzije |
---|---|
Entity Framework Core | 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
Povratne informacije o proizvodu Entity Framework
Entity Framework je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: