Language

MaterializationInterceptionData 構造体

定義

具体化されるインスタンスに関するデータを含む IMaterializationInterceptor メソッドに渡されるパラメーター オブジェクト。

[System.Runtime.CompilerServices.IsReadOnly]
[System.Runtime.CompilerServices.Nullable(0)]
public readonly struct MaterializationInterceptionData
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct MaterializationInterceptionData
[<System.Runtime.CompilerServices.IsReadOnly>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type MaterializationInterceptionData = struct
[<System.Runtime.CompilerServices.IsReadOnly>]
type MaterializationInterceptionData = struct
Public Structure MaterializationInterceptionData
継承
MaterializationInterceptionData
属性

注釈

詳細と例については 、「ログ記録、イベント、診断 」を参照してください。

コンストラクター

Name 説明
MaterializationInterceptionData(MaterializationContext, IEntityType, Dictionary<IPropertyBase,ValueTuple<Object,Func<MaterializationContext, Object>>>)

これは、パブリック API と同じ互換性標準の対象ではなく、Entity Framework Core インフラストラクチャをサポートする内部 API です。 これは、任意のリリースで予告なしに変更または削除される可能性があります。 コード内で直接使用する場合は、細心の注意を払う必要があります。これを行うと、新しいEntity Framework Core リリースに更新するときにアプリケーションのエラーが発生する可能性があることを認識してください。

MaterializationInterceptionData(MaterializationContext, IEntityType, Nullable<QueryTrackingBehavior>, Dictionary<IPropertyBase,ValueTuple<Object, Func<MaterializationContext,Object>>>)

これは、パブリック API と同じ互換性標準の対象ではなく、Entity Framework Core インフラストラクチャをサポートする内部 API です。 これは、任意のリリースで予告なしに変更または削除される可能性があります。 コード内で直接使用する場合は、細心の注意を払う必要があります。これを行うと、新しいEntity Framework Core リリースに更新するときにアプリケーションのエラーが発生する可能性があることを認識してください。

プロパティ

Name 説明
Context

現在使用されている DbContext インスタンス。

EntityType

具体化されるエンティティの型。

QueryTrackingBehavior

クエリ追跡の動作。この具体化がクエリからでない場合は null 。

メソッド

Name 説明
GetPropertyValue(IPropertyBase)

指定されたプロパティのプロパティ値を取得します。

GetPropertyValue(String)

指定した名前のプロパティのプロパティ値を取得します。

GetPropertyValue<T>(IPropertyBase)

指定されたプロパティのプロパティ値を取得します。

GetPropertyValue<T>(String)

指定した名前のプロパティのプロパティ値を取得します。

適用対象