Table of Contents

Class ChangeDetector

Namespace
Microsoft.EntityFrameworkCore.ChangeTracking.Internal
Assembly
Microsoft.EntityFrameworkCore.dll

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public class ChangeDetector : IChangeDetector
Inheritance
ChangeDetector
Implements
Inherited Members

Constructors

ChangeDetector(IDiagnosticsLogger<ChangeTracking>, ILoggingOptions)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public ChangeDetector(IDiagnosticsLogger<DbLoggerCategory.ChangeTracking> logger, ILoggingOptions loggingOptions)

Parameters

logger IDiagnosticsLogger<DbLoggerCategory.ChangeTracking>
loggingOptions ILoggingOptions

Methods

CaptureEvents()

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual (EventHandler<DetectChangesEventArgs>? DetectingAllChanges, EventHandler<DetectedChangesEventArgs>? DetectedAllChanges, EventHandler<DetectEntityChangesEventArgs>? DetectingEntityChanges, EventHandler<DetectedEntityChangesEventArgs>? DetectedEntityChanges) CaptureEvents()

Returns

(EventHandler<DetectChangesEventArgs> DetectingAllChanges, EventHandler<DetectedChangesEventArgs> DetectedAllChanges, EventHandler<DetectEntityChangesEventArgs> DetectingEntityChanges, EventHandler<DetectedEntityChangesEventArgs> DetectedEntityChanges)

DetectChanges(IStateManager)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual void DetectChanges(IStateManager stateManager)

Parameters

stateManager IStateManager

DetectChanges(InternalEntityEntry)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual void DetectChanges(InternalEntityEntry entry)

Parameters

entry InternalEntityEntry

DetectNavigationChange(InternalEntityEntry, INavigationBase)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public bool DetectNavigationChange(InternalEntityEntry entry, INavigationBase navigationBase)

Parameters

entry InternalEntityEntry
navigationBase INavigationBase

Returns

bool

DetectValueChange(InternalEntityEntry, IProperty)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public bool DetectValueChange(InternalEntityEntry entry, IProperty property)

Parameters

entry InternalEntityEntry
property IProperty

Returns

bool

OnDetectedAllChanges(IStateManager, bool)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual void OnDetectedAllChanges(IStateManager stateManager, bool changesFound)

Parameters

stateManager IStateManager
changesFound bool

OnDetectedEntityChanges(InternalEntityEntry, bool)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual void OnDetectedEntityChanges(InternalEntityEntry internalEntityEntry, bool changesFound)

Parameters

internalEntityEntry InternalEntityEntry
changesFound bool

OnDetectingAllChanges(IStateManager)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual void OnDetectingAllChanges(IStateManager stateManager)

Parameters

stateManager IStateManager

OnDetectingEntityChanges(InternalEntityEntry)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual void OnDetectingEntityChanges(InternalEntityEntry internalEntityEntry)

Parameters

internalEntityEntry InternalEntityEntry

PropertyChanged(InternalEntityEntry, IPropertyBase, bool)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual void PropertyChanged(InternalEntityEntry entry, IPropertyBase propertyBase, bool setModified)

Parameters

entry InternalEntityEntry
propertyBase IPropertyBase
setModified bool

PropertyChanging(InternalEntityEntry, IPropertyBase)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual void PropertyChanging(InternalEntityEntry entry, IPropertyBase propertyBase)

Parameters

entry InternalEntityEntry
propertyBase IPropertyBase

ResetState()

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual void ResetState()

SetEvents(EventHandler<DetectChangesEventArgs>?, EventHandler<DetectedChangesEventArgs>?, EventHandler<DetectEntityChangesEventArgs>?, EventHandler<DetectedEntityChangesEventArgs>?)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual void SetEvents(EventHandler<DetectChangesEventArgs>? detectingAllChanges, EventHandler<DetectedChangesEventArgs>? detectedAllChanges, EventHandler<DetectEntityChangesEventArgs>? detectingEntityChanges, EventHandler<DetectedEntityChangesEventArgs>? detectedEntityChanges)

Parameters

detectingAllChanges EventHandler<DetectChangesEventArgs>
detectedAllChanges EventHandler<DetectedChangesEventArgs>
detectingEntityChanges EventHandler<DetectEntityChangesEventArgs>
detectedEntityChanges EventHandler<DetectedEntityChangesEventArgs>

Events

DetectedAllChanges

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public event EventHandler<DetectedChangesEventArgs>? DetectedAllChanges

Event Type

EventHandler<DetectedChangesEventArgs>

DetectedEntityChanges

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public event EventHandler<DetectedEntityChangesEventArgs>? DetectedEntityChanges

Event Type

EventHandler<DetectedEntityChangesEventArgs>

DetectingAllChanges

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public event EventHandler<DetectChangesEventArgs>? DetectingAllChanges

Event Type

EventHandler<DetectChangesEventArgs>

DetectingEntityChanges

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public event EventHandler<DetectEntityChangesEventArgs>? DetectingEntityChanges

Event Type

EventHandler<DetectEntityChangesEventArgs>