IgnoringIdentityResolutionInterceptor Klasse
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
A IIdentityResolutionInterceptor that ignores the new instance and retains property values from the existing tracked instance.
public class IgnoringIdentityResolutionInterceptor : Microsoft.EntityFrameworkCore.Diagnostics.IIdentityResolutionInterceptor
type IgnoringIdentityResolutionInterceptor = class
interface IIdentityResolutionInterceptor
interface IInterceptor
Public Class IgnoringIdentityResolutionInterceptor
Implements IIdentityResolutionInterceptor
- Vererbung
-
IgnoringIdentityResolutionInterceptor
- Implementiert
Konstruktoren
| Name | Beschreibung |
|---|---|
| IgnoringIdentityResolutionInterceptor() |
A IIdentityResolutionInterceptor that ignores the new instance and retains property values from the existing tracked instance. |
Methoden
| Name | Beschreibung |
|---|---|
| UpdateTrackedInstance(IdentityResolutionInterceptionData, EntityEntry, Object) |
Wird aufgerufen, wenn versucht wird, eine DbContext neue Instanz einer Entität mit demselben Primärschlüsselwert wie eine bereits nachverfolgte Instanz nachzuverfolgen. Diese Implementierung führt nichts aus, sodass Eigenschaftswerte aus der vorhandenen nachverfolgten Instanz beibehalten werden. |