共用方式為


ISaveChangesInterceptor.SaveChangesFailed(DbContextErrorEventData) 方法

定義

在 中 DbContext.SaveChanges 擲回例外狀況時呼叫。

public void SaveChangesFailed (Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData eventData);
public virtual void SaveChangesFailed (Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData eventData);
abstract member SaveChangesFailed : Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData -> unit
abstract member SaveChangesFailed : Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData -> unit
override this.SaveChangesFailed : Microsoft.EntityFrameworkCore.Diagnostics.DbContextErrorEventData -> unit
Public Sub SaveChangesFailed (eventData As DbContextErrorEventData)
Public Overridable Sub SaveChangesFailed (eventData As DbContextErrorEventData)

參數

eventData
DbContextErrorEventData

失敗的相關內容資訊。

適用於