共用方式為


IDbCommandInterceptor.CommandCanceled(DbCommand, CommandEndEventData) 方法

定義

當命令取消時呼叫。

public virtual void CommandCanceled (System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData eventData);
abstract member CommandCanceled : System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData -> unit
override this.CommandCanceled : System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData -> unit
Public Overridable Sub CommandCanceled (command As DbCommand, eventData As CommandEndEventData)

參數

command
DbCommand

命令。

eventData
CommandEndEventData

命令和執行的相關內容資訊。

適用於