RelationalLoggerExtensions.ExecuteDeleteFailed 方法

定义

ExecuteDeleteFailed事件的日志。

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

参数

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Query>

要使用的诊断记录器。

contextType
Type

正在使用 DbContext 的类型。

exception
Exception

导致此失败的异常。

适用于