Jazyk

LazyLoaderParameterBindingFactory Třída

Definice

A IParameterBindingFactory pro vazbu se službou ILazyLoader .

[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
Dědičnost
LazyLoaderParameterBindingFactory
Atributy

Poznámky

Životnost služby je Singleton a je povoleno více registrací. To znamená, že mnoho instancí používá DbContext jednu instanci každé služby. Implementace musí být bezpečná pro přístup z více vláken. Tato služba nemůže záviset na službách registrovaných jako Scoped.

Další informace a příklady najdete v tématu Typy entit s konstruktory .

Konstruktory

Název Description
LazyLoaderParameterBindingFactory(LazyLoaderParameterBindingFactoryDependencies)

Vytvoří novou instanci LazyLoaderParameterBindingFactory.

Vlastnosti

Název Description
Dependencies

Závislosti pro tuto službu.

Metody

Název Description
Bind(IConventionEntityType, Type, String)

ParameterBinding Vytvoří pro daný typ a název daného typu entity.

Bind(IMutableEntityType, Type, String)

ParameterBinding Vytvoří pro daný typ a název daného typu entity.

Bind(IReadOnlyEntityType, Type, String)

ParameterBinding Vytvoří pro daný typ a název daného typu entity.

CanBind(Type, String)

Zkontroluje, jestli může tato továrna svázat parametr s daným typem a názvem.

Platí pro