IgnoringIdentityResolutionInterceptor Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Inheritance
-
IgnoringIdentityResolutionInterceptor
- Implements
Constructors
IgnoringIdentityResolutionInterceptor() |
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
Entity Framework