Sprache

IgnoringIdentityResolutionInterceptor Klasse

Definition

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.

Gilt für: