共用方式為


RelationalLoggerExtensions.ExecuteUpdateFailed 方法

定義

ExecuteUpdateFailed事件的記錄。

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

參數

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Query>

要使用的診斷記錄器。

contextType
Type

DbContext所使用的型別。

exception
Exception

造成此失敗的例外狀況。

適用於