Partilhar via


CoreLoggerExtensions.SaveChangesCompletedAsync Método

Definição

Logs do SaveChangesCompleted evento.

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)

Parâmetros

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Update>

O agente diagnóstico a ser usado.

context
DbContext

O contexto que está sendo usado.

entitiesSavedCount
Int32

O número de entidades salvas.

cancellationToken
CancellationToken

Um CancellationToken a ser observado enquanto aguarda a conclusão da tarefa.

Retornos

O resultado, possivelmente interceptado.

Exceções

Se o padrão CancellationToken for cancelado.

Aplica-se a