다음을 통해 공유


DbCommandDispatcher.Scalar(DbCommand, DbCommandInterceptionContext) 메서드

정의

public virtual object Scalar(System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext interceptionContext);
abstract member Scalar : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext -> obj
override this.Scalar : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext -> obj
Public Overridable Function Scalar (command As DbCommand, interceptionContext As DbCommandInterceptionContext) As Object

매개 변수

command
DbCommand

작업을 실행할 명령입니다.

interceptionContext
DbCommandInterceptionContext

호출의 컨텍스트에 대한 선택적 정보입니다.

반환

인터셉터에 의해 수정되었을 수 있는 작업의 결과입니다.

설명

명령을 실행한 결과는 이 메서드에서 반환됩니다. 가로채기 컨텍스트가 인터셉터에 전달되기 전에 복제되므로 이 메서드에 전달된 가로채기 컨텍스트에서는 결과를 사용할 수 없습니다.

적용 대상