DbContext.SavingChanges Evento
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Um evento acionado no início de uma chamada para SaveChanges ou SaveChangesAsync
[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 2, 1 })]
public event EventHandler<Microsoft.EntityFrameworkCore.SavingChangesEventArgs>? SavingChanges;
public event EventHandler<Microsoft.EntityFrameworkCore.SavingChangesEventArgs> SavingChanges;
public event EventHandler<Microsoft.EntityFrameworkCore.SavingChangesEventArgs>? SavingChanges;
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 2, 1 })>]
member this.SavingChanges : EventHandler<Microsoft.EntityFrameworkCore.SavingChangesEventArgs>
member this.SavingChanges : EventHandler<Microsoft.EntityFrameworkCore.SavingChangesEventArgs>
Public Event SavingChanges As EventHandler(Of SavingChangesEventArgs)
Tipo de evento
- Atributos
Comentários
Confira Como salvar dados em eventos EF Core e EF Core para obter mais informações e exemplos.