語言

DbCommandDispatcher.NonQuery(DbCommand, DbCommandInterceptionContext) 方法

定義

public virtual int NonQuery(System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext interceptionContext);
abstract member NonQuery : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext -> int
override this.NonQuery : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext -> int
Public Overridable Function NonQuery (command As DbCommand, interceptionContext As DbCommandInterceptionContext) As Integer

參數

command
DbCommand

執行行動的指令。

interceptionContext
DbCommandInterceptionContext

關於通話背景的可選資訊。

傳回

該行動的結果可能被攔截機修改。

備註

請注意,執行指令的結果會由此方法回傳。 由於截取上下文在傳遞給攔截者之前,該結果無法在傳輸到攔截者之前取得。

適用於