Condividi tramite


CoreLoggerExtensions.SaveChangesCompletedAsync Metodo

Definizione

Registra l'evento SaveChangesCompleted .

public static System.Threading.Tasks.ValueTask<int> SaveChangesCompletedAsync (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> diagnostics, Microsoft.EntityFrameworkCore.DbContext context, int entitiesSavedCount, System.Threading.CancellationToken cancellationToken = default);
static member SaveChangesCompletedAsync : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> * Microsoft.EntityFrameworkCore.DbContext * int * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<int>
<Extension()>
Public Function SaveChangesCompletedAsync (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Update), context As DbContext, entitiesSavedCount As Integer, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Integer)

Parametri

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Update>

Logger di diagnostica da usare.

context
DbContext

Contesto usato.

entitiesSavedCount
Int32

Numero di entità salvate.

cancellationToken
CancellationToken

Oggetto CancellationToken da osservare durante l'attesa del completamento dell'attività.

Restituisce

Il risultato, possibilmente intercettato, .

Eccezioni

Si applica a