Skip to main content

SqlServerFormatter

Formats SQL server queries with a DECLARE up top for parameter values

Assembly: ServiceStack.NetFramework.dll
View Source
Declaration
public class SqlServerFormatter : ISqlFormatter

Methods

FormatSql(SqlTiming)

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

View Source
Declaration
public string FormatSql(SqlTiming timing)
Returns

System.String: A formatted SQL string

Parameters
TypeNameDescription
ServiceStack.MiniProfiler.SqlTimingtimingThe SqlTiming to format

|

Implements