Share via


RelationalLoggerExtensions.NonQueryOperationFailed Method

Definition

Logs for the NonQueryOperationFailed event.

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)

Parameters

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Query>

The diagnostics logger to use.

contextType
Type

The DbContext type being used.

exception
Exception

The exception that caused this failure.

Applies to