ChangeTracker.DetectingAllChanges イベント

定義

の明示的な呼び出しDetectChanges()を通じて、エンティティ グラフの変更が発生しようとしていることを検出するときに発生するイベント。または、実行の一部や など、自動的に発生しますSaveChanges()SaveChangesAsync(CancellationToken)

public event EventHandler<Microsoft.EntityFrameworkCore.ChangeTracking.DetectChangesEventArgs> DetectingAllChanges;
member this.DetectingAllChanges : EventHandler<Microsoft.EntityFrameworkCore.ChangeTracking.DetectChangesEventArgs> 
Public Custom Event DetectingAllChanges As EventHandler(Of DetectChangesEventArgs) 

イベントの種類

注釈

AutoDetectChangesEnabled は、再帰的な自動呼び出しの無限ループを防ぐために、 イベントの期間に に false 設定されます。

詳細と例については、「 EF Core の変更の追跡 」を参照してください。

適用対象