Udostępnij za pośrednictwem


CoreLoggerExtensions.SaveChangesStarting Metoda

Definicja

SaveChangesStarting Rejestruje zdarzenie.

public static void SaveChangesStarting (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> diagnostics, Microsoft.EntityFrameworkCore.DbContext context);
public static Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int> SaveChangesStarting (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> diagnostics, Microsoft.EntityFrameworkCore.DbContext context);
static member SaveChangesStarting : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> * Microsoft.EntityFrameworkCore.DbContext -> unit
static member SaveChangesStarting : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> * Microsoft.EntityFrameworkCore.DbContext -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int>
<Extension()>
Public Sub SaveChangesStarting (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Update), context As DbContext)
<Extension()>
Public Function SaveChangesStarting (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Update), context As DbContext) As InterceptionResult(Of Integer)

Parametry

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Update>

Rejestrator diagnostyczny do użycia.

context
DbContext

Używany kontekst.

Zwraca

Wynik, prawdopodobnie przechwycony.

Dotyczy