Jazyk

IgnoringIdentityResolutionInterceptor.UpdateTrackedInstance Metoda

Definice

Volá se DbContext , když se pokusí sledovat novou instanci entity se stejnou hodnotou primárního klíče jako již sledovaný instance. Tato implementace nedělá nic, aby hodnoty vlastností z existující sledované instance byly zachovány.

public virtual void UpdateTrackedInstance(Microsoft.EntityFrameworkCore.Diagnostics.IdentityResolutionInterceptionData interceptionData, Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry existingEntry, object newEntity);
abstract member UpdateTrackedInstance : Microsoft.EntityFrameworkCore.Diagnostics.IdentityResolutionInterceptionData * Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry * obj -> unit
override this.UpdateTrackedInstance : Microsoft.EntityFrameworkCore.Diagnostics.IdentityResolutionInterceptionData * Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry * obj -> unit
Public Overridable Sub UpdateTrackedInstance (interceptionData As IdentityResolutionInterceptionData, existingEntry As EntityEntry, newEntity As Object)

Parametry

interceptionData
IdentityResolutionInterceptionData

Kontextové informace o řešení identity

existingEntry
EntityEntry

Položka pro existující sledované instance entity.

newEntity
Object

Nová instance entity, která se po tomto volání zahodí.

Implementuje

Platí pro