语言

UpdatingIdentityResolutionInterceptor 类

定义

将 IIdentityResolutionInterceptor 属性值从新实体实例复制到跟踪的实体实例。

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

构造函数

名称 说明
UpdatingIdentityResolutionInterceptor(Boolean, Boolean)

创建侦听器的新实例。

方法

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

尝试跟踪与已跟踪实例相同的主键值的实体的新实例时 DbContext 调用。 此实现将属性值从新实体实例复制到跟踪的实体实例中。

适用于