Class LazyLoader
- Assembly
- Microsoft.EntityFrameworkCore.dll
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public class LazyLoader : ILazyLoader, IInjectableService
- Inheritance
-
LazyLoader
- Implements
-
ILazyLoader
- Inherited Members
Constructors
LazyLoader(ICurrentDbContext, IDiagnosticsLogger<Infrastructure>)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public LazyLoader(ICurrentDbContext currentContext, IDiagnosticsLogger<DbLoggerCategory.Infrastructure> logger)
Parameters
currentContext
ICurrentDbContextlogger
IDiagnosticsLogger<DbLoggerCategory.Infrastructure>
Properties
Context
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
protected virtual DbContext? Context { get; set; }
Property Value
Logger
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
protected virtual IDiagnosticsLogger<DbLoggerCategory.Infrastructure> Logger { get; }
Property Value
Methods
Attaching(DbContext, IEntityType, object)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public virtual void Attaching(DbContext context, IEntityType entityType, object entity)
Parameters
context
DbContextentityType
IEntityTypeentity
object
Detaching(DbContext, object)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public virtual bool Detaching(DbContext context, object entity)
Parameters
Returns
Dispose()
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public virtual void Dispose()
Injected(DbContext, object, ParameterBindingInfo)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public virtual void Injected(DbContext context, object entity, ParameterBindingInfo bindingInfo)
Parameters
context
DbContextentity
objectbindingInfo
ParameterBindingInfo
IsLoaded(object, string)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public virtual bool IsLoaded(object entity, string navigationName = "")
Parameters
Returns
Load(object, string)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public virtual void Load(object entity, string navigationName = "")
Parameters
LoadAsync(object, CancellationToken, string)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public virtual Task LoadAsync(object entity, CancellationToken cancellationToken = default, string navigationName = "")
Parameters
entity
objectcancellationToken
CancellationTokennavigationName
string
Returns
SetLoaded(object, string, bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public virtual void SetLoaded(object entity, string navigationName = "", bool loaded = true)