C# 클래스 StackExchange.Profiling.SqlFormatters.SqlServerFormatter

Formats SQL server queries with a DECLARE up top for parameter values
상속: ISqlFormatter
파일 보기 프로젝트 열기: NGPVAN/MiniProfiler 1 사용 예제들

공개 메소드들

메소드 설명
FormatSql ( SqlTiming timing ) : string

Formats the SQL in a SQL-Server friendly way, with DECLARE statements for the parameters up top.

비공개 메소드들

메소드 설명
GenerateStreamFromString ( string s ) : Stream
GetJsonVal ( SqlTimingParameter p ) : string
GetWithLenFormatter ( string native ) : string>.Func

get the 'with length' formatter.

PrepareValue ( SqlTimingParameter parameter ) : string

prepare the value.

SqlServerFormatter ( ) : System

Initialises static members of the SqlServerFormatter class.

메소드 상세

FormatSql() 공개 메소드

Formats the SQL in a SQL-Server friendly way, with DECLARE statements for the parameters up top.
public FormatSql ( SqlTiming timing ) : string
timing SqlTiming The SqlTiming to format
리턴 string