C# 클래스 StackExchange.Profiling.SqlTiming

파일 보기 프로젝트 열기: NGPVAN/MiniProfiler 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AddSpacesToParameters string
GetCommandParameters List
GetDbType string
GetDurationMilliseconds decimal
GetParameterSize int
GetValue string
SqlTiming System

공개 메소드들

메소드 설명
Equals ( object rValue ) : bool

Returns true if Ids match.

ExecutionComplete ( bool isReader ) : void

Called when command execution is finished to determine this SqlTiming's duration.

GetHashCode ( ) : int

Returns hash code of Id.

ReaderFetchComplete ( ) : void

Called when database reader is closed, ending profiling for StackExchange.Profiling.Data.ExecuteType.Reader SqlTimings.

SqlTiming ( IDbCommand command, ExecuteType type, StackExchange.Profiling.MiniProfiler profiler ) : System

Initialises a new instance of the SqlTiming class. Creates a new SqlTiming to profile 'command'.

ToString ( ) : string

Returns a snippet of the SQL command and the duration.

비공개 메소드들

메소드 설명
AddSpacesToParameters ( string commandString ) : string

To help with display, put some space around sammiched commas

GetCommandParameters ( IDbCommand command ) : List

get the command parameters.

GetDbType ( IDataParameter parameter ) : string

Returns the DbType as string, accounting for table parameter types

GetDurationMilliseconds ( ) : decimal

get the duration in milliseconds.

GetParameterSize ( IDbDataParameter parameter ) : int

get the parameter size.

GetValue ( IDataParameter parameter ) : string

Returns the value of parameter suitable for storage/display.

SqlTiming ( ) : System

메소드 상세

Equals() 공개 메소드

Returns true if Ids match.
public Equals ( object rValue ) : bool
rValue object /// The rValue. ///
리턴 bool

ExecutionComplete() 공개 메소드

Called when command execution is finished to determine this SqlTiming's duration.
public ExecutionComplete ( bool isReader ) : void
isReader bool The Reader.
리턴 void

GetHashCode() 공개 메소드

Returns hash code of Id.
public GetHashCode ( ) : int
리턴 int

ReaderFetchComplete() 공개 메소드

Called when database reader is closed, ending profiling for StackExchange.Profiling.Data.ExecuteType.Reader SqlTimings.
public ReaderFetchComplete ( ) : void
리턴 void

SqlTiming() 공개 메소드

Initialises a new instance of the SqlTiming class. Creates a new SqlTiming to profile 'command'.
public SqlTiming ( IDbCommand command, ExecuteType type, StackExchange.Profiling.MiniProfiler profiler ) : System
command IDbCommand The command.
type ExecuteType The type.
profiler StackExchange.Profiling.MiniProfiler The profiler.
리턴 System

ToString() 공개 메소드

Returns a snippet of the SQL command and the duration.
public ToString ( ) : string
리턴 string