Sprache

UpdatingIdentityResolutionInterceptor Klasse

Definition

Ein IIdentityResolutionInterceptor Objekt, das Eigenschaftswerte aus der neuen Entitätsinstanz in die nachverfolgte Entitätsinstanz kopiert.

public class UpdatingIdentityResolutionInterceptor : Microsoft.EntityFrameworkCore.Diagnostics.IIdentityResolutionInterceptor
type UpdatingIdentityResolutionInterceptor = class
    interface IIdentityResolutionInterceptor
    interface IInterceptor
Public Class UpdatingIdentityResolutionInterceptor
Implements IIdentityResolutionInterceptor
Vererbung
UpdatingIdentityResolutionInterceptor
Implementiert

Konstruktoren

Name Beschreibung
UpdatingIdentityResolutionInterceptor(Boolean, Boolean)

Erstellt eine neue Instanz des Interceptors.

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 kopiert Eigenschaftswerte aus der neuen Entitätsinstanz in die nachverfolgte Entitätsinstanz.

Gilt für: