语言

IgnoringIdentityResolutionInterceptor 类

定义

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

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

构造函数

名称 说明
IgnoringIdentityResolutionInterceptor()

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

方法

名称 说明
UpdateTrackedInstance(IdentityResolutionInterceptionData, EntityEntry, Object)

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

适用于