다음을 통해 공유


DatabaseLogFormatter.GetStopwatch(DbCommandInterceptionContext) 메서드

정의

실행 시간을 지정하는 데 사용되는 스톱워치입니다. 이 스톱워치는 , 및 메서드의 NonQueryExecuting(DbCommand, DbCommandInterceptionContext<Int32>)끝에서 시작되며 , ScalarExecuted(DbCommand, DbCommandInterceptionContext<Object>)ReaderExecuted(DbCommand, DbCommandInterceptionContext<DbDataReader>) 메서드의 NonQueryExecuted(DbCommand, DbCommandInterceptionContext<Int32>)시작 부분에서 중지 ReaderExecuting(DbCommand, DbCommandInterceptionContext<DbDataReader>) 됩니다. ScalarExecuting(DbCommand, DbCommandInterceptionContext<Object>) 이러한 메서드가 재정의되고 스톱워치가 사용되는 경우 재정의는 기본 메서드를 호출하거나 스톱워치 자체를 시작/중지해야 합니다.

protected internal System.Diagnostics.Stopwatch GetStopwatch (System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext interceptionContext);
member this.GetStopwatch : System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext -> System.Diagnostics.Stopwatch
Protected Friend Function GetStopwatch (interceptionContext As DbCommandInterceptionContext) As Stopwatch

매개 변수

interceptionContext
DbCommandInterceptionContext

스톱워치를 가져올 가로채기 컨텍스트입니다.

반환

스톱워치입니다.

적용 대상