Share via


LazyLoaderParameterBindingFactory Class

Definition

A IParameterBindingFactory for binding to the ILazyLoader service.

[System.Runtime.CompilerServices.Nullable(0)]
public class LazyLoaderParameterBindingFactory : Microsoft.EntityFrameworkCore.Metadata.ServiceParameterBindingFactory
public class LazyLoaderParameterBindingFactory : Microsoft.EntityFrameworkCore.Metadata.ServiceParameterBindingFactory
[<System.Runtime.CompilerServices.Nullable(0)>]
type LazyLoaderParameterBindingFactory = class
    inherit ServiceParameterBindingFactory
type LazyLoaderParameterBindingFactory = class
    inherit ServiceParameterBindingFactory
Public Class LazyLoaderParameterBindingFactory
Inherits ServiceParameterBindingFactory
Inheritance
LazyLoaderParameterBindingFactory
Attributes

Remarks

The service lifetime is Singleton and multiple registrations are allowed. This means a single instance of each service is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.

See Entity types with constructors for more information and examples.

Constructors

Name Description
LazyLoaderParameterBindingFactory(LazyLoaderParameterBindingFactoryDependencies)

Creates a new LazyLoaderParameterBindingFactory instance.

Properties

Name Description
Dependencies

Dependencies for this service.

Methods

Name Description
Bind(IConventionEntityType, Type, String)

Creates a ParameterBinding for the given type and name on the given entity type.

Bind(IMutableEntityType, Type, String)

Creates a ParameterBinding for the given type and name on the given entity type.

Bind(IReadOnlyEntityType, Type, String)

Creates a ParameterBinding for the given type and name on the given entity type.

CanBind(Type, String)

Checks whether this factory can bind a parameter with the given type and name.

Applies to