IgnoringIdentityResolutionInterceptor Class

Definition

A IIdentityResolutionInterceptor that ignores the new instance and retains property values from the existing tracked instance.

C#
public class IgnoringIdentityResolutionInterceptor : Microsoft.EntityFrameworkCore.Diagnostics.IIdentityResolutionInterceptor
Inheritance
IgnoringIdentityResolutionInterceptor
Implements

Constructors

Methods

UpdateTrackedInstance(IdentityResolutionInterceptionData, EntityEntry, Object)

Called when a DbContext attempts to track a new instance of an entity with the same primary key value as an already tracked instance. This implementation does nothing, such that property values from the existing tracked instance are retained.

Applies to

Product Versions
Entity Framework Core 7.0, 8.0, 9.0