C# Class NContrib.SqlCommandFormatter

This formats a SqlCommand so that it's highly readable and probably executable, but it is not meant to generate SQL that gets executed. It's for describing a command.
ファイルを表示 Open project: veracross/ncontrib

Public Properties

Property Type Description
FormatCulture System.Globalization.CultureInfo

Public Methods

Method Description
FormatCommand ( SqlCommand cmd ) : string
FormatSqlParameter ( SqlParameter p ) : string
FormatSqlValue ( object value ) : string

Method Details

FormatCommand() public static method

public static FormatCommand ( SqlCommand cmd ) : string
cmd System.Data.SqlClient.SqlCommand
return string

FormatSqlParameter() public static method

public static FormatSqlParameter ( SqlParameter p ) : string
p System.Data.SqlClient.SqlParameter
return string

FormatSqlValue() public static method

public static FormatSqlValue ( object value ) : string
value object
return string

Property Details

FormatCulture public_oe static_oe property

public static CultureInfo,System.Globalization FormatCulture
return System.Globalization.CultureInfo