Language

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

呼び出しのコンテキストに関する省略可能な情報。

戻り値

インターセプターによって変更された可能性がある操作の結果。

注釈

コマンドの実行結果は、このメソッドによって返されることに注意してください。 インターセプト コンテキストはインターセプターに渡される前に複製されるため、このメソッドに渡されるインターセプト コンテキストでは結果を使用できません。

適用対象