UpdatingIdentityResolutionInterceptor 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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 嘗試追蹤一個實體的新實例,其主鍵值與已追蹤的實例相同時,會被呼叫。 此實作會將新實體實例的屬性值複製到追蹤的實體實例中。 |