다음을 통해 공유


CoreLoggerExtensions.SaveChangesStartingAsync 메서드

정의

이벤트에 대한 로그입니다 SaveChangesStarting .

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

매개 변수

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Update>

사용할 진단 로거입니다.

context
DbContext

사용 중인 컨텍스트입니다.

cancellationToken
CancellationToken

CancellationToken 작업이 완료 될 때까지 기다리는 동안 관찰할 입니다.

반환

가로챌 수 있는 결과입니다.

예외

적용 대상