Language

ServiceParameterBindingFactory クラス

定義

依存関係が挿入されたサービスにバインドするための IParameterBindingFactory 。

[System.Runtime.CompilerServices.Nullable(0)]
public class ServiceParameterBindingFactory : Microsoft.EntityFrameworkCore.Metadata.IParameterBindingFactory
public class ServiceParameterBindingFactory : Microsoft.EntityFrameworkCore.Metadata.IParameterBindingFactory
[<System.Runtime.CompilerServices.Nullable(0)>]
type ServiceParameterBindingFactory = class
    interface IParameterBindingFactory
type ServiceParameterBindingFactory = class
    interface IParameterBindingFactory
Public Class ServiceParameterBindingFactory
Implements IParameterBindingFactory
継承
ServiceParameterBindingFactory
派生
属性
実装

注釈

サービスの有効期間は Singleton され、複数の登録が許可されます。 つまり、各サービスの 1 つのインスタンスが多数の DbContext インスタンスで使用されます。 実装はスレッド セーフである必要があります。 このサービスは、 Scopedとして登録されたサービスに依存できません。

詳細と例については、 コンストラクターを含むエンティティ型 を参照してください。

コンストラクター

Name 説明
ServiceParameterBindingFactory(Type)

指定したサービスの種類の新しい ServiceParameterBindingFactory インスタンスを作成します。

メソッド

Name 説明
Bind(IConventionEntityType, Type, String)

指定したエンティティ型の指定した型と名前の ParameterBinding を作成します。

Bind(IMutableEntityType, Type, String)

指定したエンティティ型の指定した型と名前の ParameterBinding を作成します。

Bind(IReadOnlyEntityType, Type, String)

指定したエンティティ型の指定した型と名前の ParameterBinding を作成します。

CanBind(Type, String)

このファクトリが、指定された型と名前でパラメーターをバインドできるかどうかを確認します。

適用対象