Lenguaje

DbContext.SavingChanges Evento

Definición

Evento desencadenado al principio de una llamada a SaveChanges o 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

Comentarios

Consulte Guardar datos en eventos de EF Core y EF Core para obtener más información y ejemplos.

Se aplica a