다음을 통해 공유


IDbCommandInterceptor 인터페이스

정의

이 인터페이스를 구현하는 개체를 에 등록 DbInterception 하여 Entity Framework에서 명령을 실행할 때 알림을 받을 수 있습니다.

public interface IDbCommandInterceptor : System.Data.Entity.Infrastructure.Interception.IDbInterceptor
type IDbCommandInterceptor = interface
    interface IDbInterceptor
Public Interface IDbCommandInterceptor
Implements IDbInterceptor
파생
구현

설명

인터셉터는 애플리케이션의 구성 파일에 등록할 수도 있습니다. Entity Framework 구성에 대한 자세한 내용은 를 참조하세요 http://go.microsoft.com/fwlink/?LinkId=260883 .

메서드

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() 전에 호출됩니다.

적용 대상