Language

DbCommandDispatcher クラス

定義

DbInterceptionに登録されたIDbCommandInterceptorが操作の実行前と実行後に通知されるように、DbCommandに操作をディスパッチするために使用されます。 このクラスのインスタンスは、 Dispatch fluent API を介して取得されます。

public class DbCommandDispatcher
type DbCommandDispatcher = class
Public Class DbCommandDispatcher
継承
DbCommandDispatcher

注釈

このクラスは、コマンドの実行時に Entity Framework によって内部的に使用されます。 これは、コア EF アセンブリの外部で実行されるコードがコマンドのインターセプト/トレースにオプトインできるように、パブリックに提供されます。 これは通常、EF の代わりにコマンドを実行している EF プロバイダーによって行われます。

メソッド

Name 説明
Equals(Object)

DbInterceptionに登録されたIDbCommandInterceptorが操作の実行前と実行後に通知されるように、DbCommandに操作をディスパッチするために使用されます。 このクラスのインスタンスは、 Dispatch fluent API を介して取得されます。

GetHashCode()

DbInterceptionに登録されたIDbCommandInterceptorが操作の実行前と実行後に通知されるように、DbCommandに操作をディスパッチするために使用されます。 このクラスのインスタンスは、 Dispatch fluent API を介して取得されます。

GetType()

現在のインスタンスの Type を取得します。

NonQuery(DbCommand, DbCommandInterceptionContext)

ExecuteNonQuery()の呼び出しの前後に、DbInterceptionに登録されている任意のIDbCommandInterceptorにNonQueryExecuting(DbCommand, DbCommandInterceptionContext<Int32>)とNonQueryExecuted(DbCommand, DbCommandInterceptionContext<Int32>)を送信します。

NonQueryAsync(DbCommand, DbCommandInterceptionContext, CancellationToken)

ExecuteNonQueryAsync(CancellationToken)の呼び出しの前後に、DbInterceptionに登録されている任意のIDbCommandInterceptorにNonQueryExecuting(DbCommand, DbCommandInterceptionContext<Int32>)とNonQueryExecuted(DbCommand, DbCommandInterceptionContext<Int32>)を送信します。

Reader(DbCommand, DbCommandInterceptionContext)

ExecuteReader(CommandBehavior)の呼び出しの前後に、DbInterceptionに登録されている任意のIDbCommandInterceptorにReaderExecuting(DbCommand, DbCommandInterceptionContext<DbDataReader>)とReaderExecuted(DbCommand, DbCommandInterceptionContext<DbDataReader>)を送信します。

ReaderAsync(DbCommand, DbCommandInterceptionContext, CancellationToken)

ExecuteReaderAsync(CommandBehavior, CancellationToken)の呼び出しの前後に、DbInterceptionに登録されている任意のIDbCommandInterceptorにReaderExecuting(DbCommand, DbCommandInterceptionContext<DbDataReader>)とReaderExecuted(DbCommand, DbCommandInterceptionContext<DbDataReader>)を送信します。

Scalar(DbCommand, DbCommandInterceptionContext)

ExecuteScalar()の呼び出しの前後に、DbInterceptionに登録されている任意のIDbCommandInterceptorにScalarExecuting(DbCommand, DbCommandInterceptionContext<Object>)とScalarExecuted(DbCommand, DbCommandInterceptionContext<Object>)を送信します。

ScalarAsync(DbCommand, DbCommandInterceptionContext, CancellationToken)

ExecuteScalarAsync(CancellationToken)の呼び出しの前後に、DbInterceptionに登録されている任意のIDbCommandInterceptorにScalarExecuting(DbCommand, DbCommandInterceptionContext<Object>)とScalarExecuted(DbCommand, DbCommandInterceptionContext<Object>)を送信します。

ToString()

DbInterceptionに登録されたIDbCommandInterceptorが操作の実行前と実行後に通知されるように、DbCommandに操作をディスパッチするために使用されます。 このクラスのインスタンスは、 Dispatch fluent API を介して取得されます。

適用対象