Language

ContextParameterBinding クラス

定義

コンストラクター、ファクトリ メソッドなどのパラメーターに対する DbContextのバインドについて説明します。 IServicePropertyがある場合と関連付けられていない場合もあります。

[System.Runtime.CompilerServices.Nullable(0)]
public class ContextParameterBinding : Microsoft.EntityFrameworkCore.Metadata.ServiceParameterBinding
public class ContextParameterBinding : Microsoft.EntityFrameworkCore.Metadata.ServiceParameterBinding
[<System.Runtime.CompilerServices.Nullable(0)>]
type ContextParameterBinding = class
    inherit ServiceParameterBinding
type ContextParameterBinding = class
    inherit ServiceParameterBinding
Public Class ContextParameterBinding
Inherits ServiceParameterBinding
継承
属性

注釈

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

コンストラクター

Name 説明
ContextParameterBinding(Type, IPropertyBase)

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

ContextParameterBinding(Type, IPropertyBase[])

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

プロパティ

Name 説明
ConsumedProperties

このバインディングによって処理されるプロパティは、他の方法で設定する必要はありません。

(継承元 ParameterBinding)
ParameterType

パラメーター CLR 型。

(継承元 ParameterBinding)
ServiceDelegate

エンティティ インスタンスに CLR サービス プロパティを設定するデリゲート。

(継承元 ServiceParameterBinding)
ServiceType

EF 内部サービスの CLR 型。

(継承元 ServiceParameterBinding)

メソッド

Name 説明
BindToParameter(Expression, Expression)

マテリアライズ式からコンストラクター、ファクトリ メソッドなどのパラメーターへのプロパティ値のバインドを表す式ツリーを作成します。

BindToParameter(ParameterBindingInfo)

マテリアライズ式からコンストラクター、ファクトリ メソッドなどのパラメーターへのプロパティ値のバインドを表す式ツリーを作成します。

(継承元 ServiceParameterBinding)
With(IPropertyBase[])

使用される特定のプロパティを含むコピーを作成します。

適用対象