Interface IChangeDetector
- 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 interface IChangeDetector
Remarks
The service lifetime is Scoped. This means that each DbContext instance will use its own instance of this service. The implementation may depend on other services registered with any lifetime. The implementation does not need to be thread-safe.
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.
(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.
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.
void DetectChanges(InternalEntityEntry entry)
Parameters
entry
InternalEntityEntry
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.
void OnDetectedAllChanges(IStateManager stateManager, bool changesFound)
Parameters
stateManager
IStateManagerchangesFound
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.
void OnDetectedEntityChanges(InternalEntityEntry internalEntityEntry, bool changesFound)
Parameters
internalEntityEntry
InternalEntityEntrychangesFound
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.
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.
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.
void PropertyChanged(InternalEntityEntry entry, IPropertyBase propertyBase, bool setModified)
Parameters
entry
InternalEntityEntrypropertyBase
IPropertyBasesetModified
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.
void PropertyChanging(InternalEntityEntry entry, IPropertyBase propertyBase)
Parameters
entry
InternalEntityEntrypropertyBase
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.
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.
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.
event EventHandler<DetectedChangesEventArgs>? DetectedAllChanges
Event Type
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.
event EventHandler<DetectedEntityChangesEventArgs>? DetectedEntityChanges
Event Type
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.
event EventHandler<DetectChangesEventArgs>? DetectingAllChanges
Event Type
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.
event EventHandler<DetectEntityChangesEventArgs>? DetectingEntityChanges