CoreLoggerExtensions.QueryIterationFailed 方法

定义

QueryIterationFailed事件的日志。

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

参数

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Query>

要使用的诊断记录器。

contextType
Type

正在使用 DbContext 的类型。

exception
Exception

导致此失败的异常。

适用于