다음을 통해 공유


DbCommandInterceptor 클래스

정의

를 구현하는 기본 클래스입니다 IDbCommandInterceptor. 이 클래스는 인터페이스의 메서드 하나 또는 두 개만 실제로 구현해야 하는 경우에 사용하기에 편리합니다.

public class DbCommandInterceptor : System.Data.Entity.Infrastructure.Interception.IDbCommandInterceptor
type DbCommandInterceptor = class
    interface IDbCommandInterceptor
    interface IDbInterceptor
Public Class DbCommandInterceptor
Implements IDbCommandInterceptor
상속
DbCommandInterceptor
구현

생성자

DbCommandInterceptor()

를 구현하는 기본 클래스입니다 IDbCommandInterceptor. 이 클래스는 인터페이스의 메서드 하나 또는 두 개만 실제로 구현해야 하는 경우에 사용하기에 편리합니다.

메서드

NonQueryExecuted(DbCommand, DbCommandInterceptionContext<Int32>)

이 메서드는 또는 해당 비동기 대응 항목 중 하나를 호출 ExecuteNonQuery() 한 후 호출됩니다. Entity Framework에서 사용하는 결과는 를 설정 Result하여 변경할 수 있습니다.

NonQueryExecuting(DbCommand, DbCommandInterceptionContext<Int32>)

이 메서드는 또는 해당 비동기 대응 항목 중 하나를 호출하기 ExecuteNonQuery() 전에 호출됩니다.

ReaderExecuted(DbCommand, DbCommandInterceptionContext<DbDataReader>)

이 메서드는 또는 해당 비동기 대응 항목 중 하나를 호출 ExecuteReader(CommandBehavior) 한 후 호출됩니다. Entity Framework에서 사용하는 결과는 를 설정 Result하여 변경할 수 있습니다.

ReaderExecuting(DbCommand, DbCommandInterceptionContext<DbDataReader>)

이 메서드는 또는 해당 비동기 대응 항목 중 하나를 호출하기 ExecuteReader(CommandBehavior) 전에 호출됩니다.

ScalarExecuted(DbCommand, DbCommandInterceptionContext<Object>)

이 메서드는 또는 해당 비동기 대응 항목 중 하나를 호출 ExecuteScalar() 한 후 호출됩니다. Entity Framework에서 사용하는 결과는 를 설정 Result하여 변경할 수 있습니다.

ScalarExecuting(DbCommand, DbCommandInterceptionContext<Object>)

이 메서드는 또는 해당 비동기 대응 항목 중 하나를 호출하기 ExecuteScalar() 전에 호출됩니다.

적용 대상