Language

IgnoringIdentityResolutionInterceptor クラス

定義

新しいインスタンスを無視し、既存の追跡対象インスタンスのプロパティ値を保持する IIdentityResolutionInterceptor 。

public class IgnoringIdentityResolutionInterceptor : Microsoft.EntityFrameworkCore.Diagnostics.IIdentityResolutionInterceptor
type IgnoringIdentityResolutionInterceptor = class
    interface IIdentityResolutionInterceptor
    interface IInterceptor
Public Class IgnoringIdentityResolutionInterceptor
Implements IIdentityResolutionInterceptor
継承
IgnoringIdentityResolutionInterceptor
実装

コンストラクター

Name 説明
IgnoringIdentityResolutionInterceptor()

新しいインスタンスを無視し、既存の追跡対象インスタンスのプロパティ値を保持する IIdentityResolutionInterceptor 。

メソッド

Name 説明
UpdateTrackedInstance(IdentityResolutionInterceptionData, EntityEntry, Object)

DbContextが、既に追跡されているインスタンスと同じ主キー値を持つエンティティの新しいインスタンスを追跡しようとしたときに呼び出されます。 この実装は何も行わないので、既存の追跡対象インスタンスのプロパティ値が保持されます。

適用対象