SqlCommandDumper class
namespace: Serenity.Data assembly: Serenity.Net.Services
Generates a debug version of a SQL command, including DECLARE statements for its parameters, so that it can be executed or inspected outside of the original connection. Based on the answer by Mitch at http://stackoverflow.com/questions/265192/get-the-generated-sql-statement-from-a-sqlcommand-object.
public class SqlCommandDumper
Public Members
| name | description |
|---|---|
| SqlCommandDumper() | The default constructor. |
| static GetCommandText(…) | Gets the command text for the specified command, including parameter declarations. |
See Also
- Source: SqlCommandDumper.cs