다음을 통해 공유


DbCommandDispatcher 클래스

정의

에 등록된 DbInterception 모든 IDbCommandInterceptor 작업이 작업이 DbCommand 실행되기 전과 후에 알림을 받을 수 있도록 에 작업을 디스패치하는 데 사용됩니다. 이 클래스의 인스턴스는 흐름 API를 Dispatch 통해 가져옵니다.

public class DbCommandDispatcher
type DbCommandDispatcher = class
Public Class DbCommandDispatcher
상속
DbCommandDispatcher

설명

이 클래스는 명령을 실행할 때 Entity Framework에서 내부적으로 사용됩니다. 핵심 EF 어셈블리 외부에서 실행되는 코드가 명령 가로채기/추적을 옵트인할 수 있도록 공개적으로 제공됩니다. 이 작업은 일반적으로 EF를 대신하여 명령을 실행하는 EF 공급자에 의해 수행됩니다.

메서드

Equals(Object)

에 등록된 DbInterception 모든 IDbCommandInterceptor 작업이 작업이 DbCommand 실행되기 전과 후에 알림을 받을 수 있도록 에 작업을 디스패치하는 데 사용됩니다. 이 클래스의 인스턴스는 흐름 API를 Dispatch 통해 가져옵니다.

GetHashCode()

에 등록된 DbInterception 모든 IDbCommandInterceptor 작업이 작업이 DbCommand 실행되기 전과 후에 알림을 받을 수 있도록 에 작업을 디스패치하는 데 사용됩니다. 이 클래스의 인스턴스는 흐름 API를 Dispatch 통해 가져옵니다.

GetType()

현재 인스턴스의 Type을 가져옵니다.

NonQuery(DbCommand, DbCommandInterceptionContext)

NonQueryExecuting(DbCommand, DbCommandInterceptionContext<Int32>)NonQueryExecuted(DbCommand, DbCommandInterceptionContext<Int32>) 호출ExecuteNonQuery()하기 IDbCommandInterceptor 전/후에 등록된 DbInterception 에 및 를 보냅니다.

NonQueryAsync(DbCommand, DbCommandInterceptionContext, CancellationToken)

NonQueryExecuting(DbCommand, DbCommandInterceptionContext<Int32>)NonQueryExecuted(DbCommand, DbCommandInterceptionContext<Int32>) 호출ExecuteNonQueryAsync(CancellationToken)하기 IDbCommandInterceptor 전/후에 등록된 DbInterception 에 및 를 보냅니다.

Reader(DbCommand, DbCommandInterceptionContext)

ReaderExecuting(DbCommand, DbCommandInterceptionContext<DbDataReader>)ReaderExecuted(DbCommand, DbCommandInterceptionContext<DbDataReader>) 호출ExecuteReader(CommandBehavior)하기 IDbCommandInterceptor 전/후에 등록된 DbInterception 에 및 를 보냅니다.

ReaderAsync(DbCommand, DbCommandInterceptionContext, CancellationToken)

ReaderExecuting(DbCommand, DbCommandInterceptionContext<DbDataReader>)ReaderExecuted(DbCommand, DbCommandInterceptionContext<DbDataReader>) 호출ExecuteReaderAsync(CommandBehavior, CancellationToken)하기 IDbCommandInterceptor 전/후에 등록된 DbInterception 에 및 를 보냅니다.

Scalar(DbCommand, DbCommandInterceptionContext)

ScalarExecuting(DbCommand, DbCommandInterceptionContext<Object>)ScalarExecuted(DbCommand, DbCommandInterceptionContext<Object>) 호출ExecuteScalar()하기 IDbCommandInterceptor 전/후에 등록된 DbInterception 에 및 를 보냅니다.

ScalarAsync(DbCommand, DbCommandInterceptionContext, CancellationToken)

ScalarExecuting(DbCommand, DbCommandInterceptionContext<Object>)ScalarExecuted(DbCommand, DbCommandInterceptionContext<Object>) 호출ExecuteScalarAsync(CancellationToken)하기 IDbCommandInterceptor 전/후에 등록된 DbInterception 에 및 를 보냅니다.

ToString()

에 등록된 DbInterception 모든 IDbCommandInterceptor 작업이 작업이 DbCommand 실행되기 전과 후에 알림을 받을 수 있도록 에 작업을 디스패치하는 데 사용됩니다. 이 클래스의 인스턴스는 흐름 API를 Dispatch 통해 가져옵니다.

적용 대상