IgnoringIdentityResolutionInterceptor Klasse

Definition

Ein IIdentityResolutionInterceptor , der die neue instance ignoriert und Eigenschaftswerte aus dem vorhandenen nachverfolgten instance beibehält.

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

Konstruktoren

IgnoringIdentityResolutionInterceptor()

Ein IIdentityResolutionInterceptor , der die neue instance ignoriert und Eigenschaftswerte aus dem vorhandenen nachverfolgten instance beibehält.

Methoden

UpdateTrackedInstance(IdentityResolutionInterceptionData, EntityEntry, Object)

Wird aufgerufen, wenn versucht DbContext wird, eine neue instance einer Entität mit demselben Primärschlüsselwert wie ein bereits nachverfolgter instance nachzuverfolgen. Diese Implementierung bewirkt nichts, sodass Eigenschaftswerte aus den vorhandenen nachverfolgten instance beibehalten werden.

Gilt für: