RelationalLoggerExtensions.NonQueryOperationFailed 方法

定义

NonQueryOperationFailed事件的日志。

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

参数

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Query>

要使用的诊断记录器。

contextType
Type

正在使用 DbContext 的类型。

exception
Exception

导致此失败的异常。

适用于