DatabaseLogFormatter.GetStopwatch(DbCommandInterceptionContext) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
실행 시간을 지정하는 데 사용되는 스톱워치입니다. 이 스톱워치는 , 및 메서드의 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
스톱워치를 가져올 가로채기 컨텍스트입니다.
반환
스톱워치입니다.
적용 대상
Entity Framework