C# Класс StackExchange.Profiling.SqlFormatters.SqlServerFormatter

Formats SQL server queries with a DECLARE up top for parameter values
Наследование: ISqlFormatter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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