다음을 통해 공유


DbCommandDispatcher.NonQueryAsync 메서드

정의

public virtual System.Threading.Tasks.Task<int> NonQueryAsync (System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext interceptionContext, System.Threading.CancellationToken cancellationToken);
abstract member NonQueryAsync : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
override this.NonQueryAsync : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>

매개 변수

command
DbCommand

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

interceptionContext
DbCommandInterceptionContext

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

cancellationToken
CancellationToken

비동기 작업에 대한 취소 토큰입니다.

반환

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

설명

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

적용 대상