C# Class Serenity.Data.SqlCommandDumper

http://stackoverflow.com/questions/265192/get-the-generated-sql-statement-from-a-sqlcommand-object (answer by Mitch)
Show file Open project: volkanceylan/Serenity Class Usage Examples

Public Methods

Method Description
GetCommandText ( SqlCommand sqc ) : string

Private Methods

Method Description
logParameterToSqlBatch ( SqlParameter param, StringBuilder sbCommandText ) : void
logParameterType ( SqlParameter param, StringBuilder sbCommandText ) : void
logQuotedParameterValue ( object value, StringBuilder sbCommandText ) : void
logStructuredParameter ( SqlParameter param, StringBuilder sbCommandText ) : void
unboxNullable ( object value ) : object

Method Details

GetCommandText() public static method

public static GetCommandText ( SqlCommand sqc ) : string
sqc System.Data.SqlClient.SqlCommand
return string