Language

CoreLoggerExtensions.SaveChangesCompletedAsync メソッド

定義

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)

パラメーター

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Update>

使用する診断ロガー。

context
DbContext

使用されているコンテキスト。

entitiesSavedCount
Int32

保存されたエンティティの数。

cancellationToken
CancellationToken

タスクの完了を待機している間に観察する CancellationToken 。

戻り値

インターセプトされた可能性がある結果。

例外

CancellationTokenが取り消された場合。

適用対象