RelationalLoggerExtensions.ExecuteUpdateFailed 方法

定义

ExecuteUpdateFailed事件的日志。

public static void ExecuteUpdateFailed (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> diagnostics, Type contextType, Exception exception);
static member ExecuteUpdateFailed : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> * Type * Exception -> unit
<Extension()>
Public Sub ExecuteUpdateFailed (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Query), contextType As Type, exception As Exception)

参数

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Query>

要使用的诊断记录器。

contextType
Type

正在使用 DbContext 的类型。

exception
Exception

导致此失败的异常。

适用于