Share via


IgnoringIdentityResolutionInterceptor 类

定义

IIdentityResolutionInterceptor 用于忽略新实例并保留现有跟踪实例中的属性值。

public class IgnoringIdentityResolutionInterceptor : Microsoft.EntityFrameworkCore.Diagnostics.IIdentityResolutionInterceptor
type IgnoringIdentityResolutionInterceptor = class
    interface IIdentityResolutionInterceptor
    interface IInterceptor
Public Class IgnoringIdentityResolutionInterceptor
Implements IIdentityResolutionInterceptor
继承
IgnoringIdentityResolutionInterceptor
实现

构造函数

IgnoringIdentityResolutionInterceptor()

IIdentityResolutionInterceptor 用于忽略新实例并保留现有跟踪实例中的属性值。

方法

UpdateTrackedInstance(IdentityResolutionInterceptionData, EntityEntry, Object)

尝试使用与已跟踪实例相同的主键值跟踪实体的新实例时 DbContext 调用。 此实现不执行任何工作,因此保留现有跟踪实例中的属性值。

适用于