ChangeTracker.DetectedEntityChanges Event
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.
An event fired when any changes have been detected to a single entity, either through an explicit call to DetectChanges() or DetectChanges(), or automatically, such as part of executing SaveChanges() or SaveChangesAsync(CancellationToken).
public event EventHandler<Microsoft.EntityFrameworkCore.ChangeTracking.DetectedEntityChangesEventArgs> DetectedEntityChanges;
member this.DetectedEntityChanges : EventHandler<Microsoft.EntityFrameworkCore.ChangeTracking.DetectedEntityChangesEventArgs>
Public Custom Event DetectedEntityChanges As EventHandler(Of DetectedEntityChangesEventArgs)
AutoDetectChangesEnabled is set to false
for the duration of the event to prevent an infinite loop of recursive automatic calls.
See EF Core change tracking for more information and examples.
Proizvod | Verzije |
---|---|
Entity Framework Core | 7.0, 8.0, 9.0 |
Povratne informacije o proizvodu Entity Framework
Entity Framework je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: