共用方式為


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

造成此失敗的例外狀況。

適用於