Skip to main content

InlineFormatter

Formats any SQL query with inline parameters, optionally including the value type

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

Methods​

FormatSql(SqlTiming)​

Formats the SQL in a generic frieldly format, including the parameter type information in a comment if it was specified in the InlineFormatter constructor

View Source​
Declaration
public string FormatSql(SqlTiming timing)
Returns​

System.String: A formatted SQL string

Parameters​
TypeNameDescription
ServiceStack.MiniProfiler.SqlTimingtimingThe SqlTiming to format

|

GetParameterValue(SqlTimingParameter)​

Returns a string representation of the parameter's value, including the type

View Source​
Declaration
public string GetParameterValue(SqlTimingParameter p)
Returns​

System.String

Parameters​
TypeNameDescription
ServiceStack.MiniProfiler.SqlTimingParameterpThe parameter to get a value for

|

Implements​