Jazyk

IgnoringIdentityResolutionInterceptor Třída

Definice

A IIdentityResolutionInterceptor , která ignoruje novou instanci a zachovává hodnoty vlastností z existující sledované instance.

public class IgnoringIdentityResolutionInterceptor : Microsoft.EntityFrameworkCore.Diagnostics.IIdentityResolutionInterceptor
type IgnoringIdentityResolutionInterceptor = class
    interface IIdentityResolutionInterceptor
    interface IInterceptor
Public Class IgnoringIdentityResolutionInterceptor
Implements IIdentityResolutionInterceptor
Dědičnost
IgnoringIdentityResolutionInterceptor
Implementuje

Konstruktory

Název Description
IgnoringIdentityResolutionInterceptor()

A IIdentityResolutionInterceptor , která ignoruje novou instanci a zachovává hodnoty vlastností z existující sledované instance.

Metody

Název Description
UpdateTrackedInstance(IdentityResolutionInterceptionData, EntityEntry, Object)

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.

Platí pro