語言

DbCommandDispatcher 類別

定義

用於派遣操作到 , DbCommand 使任何 IDbCommandInterceptor 註冊在 的 DbInterception 使用者在操作執行前後都會收到通知。 此類別的實例可透過 Dispatch 流暢 API 取得。

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

備註

此類別在 Entity Framework 執行指令時會內部使用。 此功能公開提供,讓執行於核心 EF 組件外的程式碼可選擇加入指令攔截/追蹤。 這通常是由代表 EF 執行指令的 EF 提供者執行。

方法

名稱 Description
Equals(Object)

用於派遣操作到 , DbCommand 使任何 IDbCommandInterceptor 註冊在 的 DbInterception 使用者在操作執行前後都會收到通知。 此類別的實例可透過 Dispatch 流暢 API 取得。

GetHashCode()

用於派遣操作到 , DbCommand 使任何 IDbCommandInterceptor 註冊在 的 DbInterception 使用者在操作執行前後都會收到通知。 此類別的實例可透過 Dispatch 流暢 API 取得。

GetType()

取得目前實例的 Type。

NonQuery(DbCommand, DbCommandInterceptionContext)

發送 NonQueryExecuting(DbCommand, DbCommandInterceptionContext<Int32>) 並 NonQueryExecuted(DbCommand, DbCommandInterceptionContext<Int32>) 發送給任何IDbCommandInterceptor在 上 或DbInterception之後註冊的人,撥打電話。ExecuteNonQuery()

NonQueryAsync(DbCommand, DbCommandInterceptionContext, CancellationToken)

發送 NonQueryExecuting(DbCommand, DbCommandInterceptionContext<Int32>) 並 NonQueryExecuted(DbCommand, DbCommandInterceptionContext<Int32>) 發送給任何IDbCommandInterceptor在 上 或DbInterception之後註冊的人,撥打電話。ExecuteNonQueryAsync(CancellationToken)

Reader(DbCommand, DbCommandInterceptionContext)

發送 ReaderExecuting(DbCommand, DbCommandInterceptionContext<DbDataReader>) 並 ReaderExecuted(DbCommand, DbCommandInterceptionContext<DbDataReader>) 發送給任何IDbCommandInterceptor在 上 或DbInterception之後註冊的人,撥打電話。ExecuteReader(CommandBehavior)

ReaderAsync(DbCommand, DbCommandInterceptionContext, CancellationToken)

發送 ReaderExecuting(DbCommand, DbCommandInterceptionContext<DbDataReader>) 並 ReaderExecuted(DbCommand, DbCommandInterceptionContext<DbDataReader>) 發送給任何IDbCommandInterceptor在 上 或DbInterception之後註冊的人,撥打電話。ExecuteReaderAsync(CommandBehavior, CancellationToken)

Scalar(DbCommand, DbCommandInterceptionContext)

發送 ScalarExecuting(DbCommand, DbCommandInterceptionContext<Object>) 並 ScalarExecuted(DbCommand, DbCommandInterceptionContext<Object>) 發送給任何IDbCommandInterceptor在 上 或DbInterception之後註冊的人,撥打電話。ExecuteScalar()

ScalarAsync(DbCommand, DbCommandInterceptionContext, CancellationToken)

發送 ScalarExecuting(DbCommand, DbCommandInterceptionContext<Object>) 並 ScalarExecuted(DbCommand, DbCommandInterceptionContext<Object>) 發送給任何IDbCommandInterceptor在 上 或DbInterception之後註冊的人,撥打電話。ExecuteScalarAsync(CancellationToken)

ToString()

用於派遣操作到 , DbCommand 使任何 IDbCommandInterceptor 註冊在 的 DbInterception 使用者在操作執行前後都會收到通知。 此類別的實例可透過 Dispatch 流暢 API 取得。

適用於