Table of Contents

Class LazyLoader

Namespace
Microsoft.EntityFrameworkCore.Infrastructure.Internal
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 ICurrentDbContext
logger 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

DbContext

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

IDiagnosticsLogger<DbLoggerCategory.Infrastructure>

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 DbContext
entityType IEntityType
entity 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

context DbContext
entity object

Returns

bool

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 DbContext
entity object
bindingInfo 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

entity object
navigationName string

Returns

bool

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

entity object
navigationName string

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 object
cancellationToken CancellationToken
navigationName string

Returns

Task

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)

Parameters

entity object
navigationName string
loaded bool