次の方法で共有


DbCommandDispatcher.NonQueryAsync メソッド

定義

public virtual System.Threading.Tasks.Task<int> NonQueryAsync(System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext interceptionContext, System.Threading.CancellationToken cancellationToken);
abstract member NonQueryAsync : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
override this.NonQueryAsync : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>

パラメーター

command
DbCommand

操作が実行されるコマンド。

interceptionContext
DbCommandInterceptionContext

呼び出しのコンテキストに関するオプションの情報。

cancellationToken
CancellationToken

非同期操作のキャンセル トークン。

戻り値

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

注釈

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

適用対象