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
Type | Name | Description |
---|---|---|
ServiceStack.MiniProfiler.SqlTiming | timing | The 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
Type | Name | Description |
---|---|---|
ServiceStack.MiniProfiler.SqlTimingParameter | p | The parameter to get a value for |
|