語言

UpdatingIdentityResolutionInterceptor 類別

定義

A IIdentityResolutionInterceptor 將新實體實例的屬性值複製到追蹤的實體實例。

public class UpdatingIdentityResolutionInterceptor : Microsoft.EntityFrameworkCore.Diagnostics.IIdentityResolutionInterceptor
type UpdatingIdentityResolutionInterceptor = class
    interface IIdentityResolutionInterceptor
    interface IInterceptor
Public Class UpdatingIdentityResolutionInterceptor
Implements IIdentityResolutionInterceptor
繼承
UpdatingIdentityResolutionInterceptor
實作

建構函式

名稱 Description
UpdatingIdentityResolutionInterceptor(Boolean, Boolean)

建立一個新的攔截者實例。

方法

名稱 Description
UpdateTrackedInstance(IdentityResolutionInterceptionData, EntityEntry, Object)

當 a DbContext 嘗試追蹤一個實體的新實例,其主鍵值與已追蹤的實例相同時,會被呼叫。 此實作會將新實體實例的屬性值複製到追蹤的實體實例中。

適用於