Lingua

ChangeTracker.DetectingEntityChanges Event

Definizione

Un evento generato quando rileva le modifiche a una singola entità sta per verificarsi, tramite una chiamata esplicita a DetectChanges() o DetectChanges()o automaticamente, ad esempio parte dell'esecuzione SaveChanges() o SaveChangesAsync(CancellationToken).

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

Tipo evento

Commenti

AutoDetectChangesEnabled è impostato su false per la durata dell'evento per impedire un ciclo infinito di chiamate automatiche ricorsive.

Per altre informazioni ed esempi, vedere Rilevamento modifiche di EF Core .

Si applica a