SqlHelper.NewCommand method (1 of 2)
namespace: Serenity.Data assembly: Serenity.Net.Data
Creates a new command.
public static IDbCommand NewCommand(IDbConnection connection, string commandText)
parameter | description |
---|---|
connection | The connection. |
commandText | The command text. |
Return Value
A new command with specified command text
Exceptions
exception | condition |
---|---|
ArgumentNullException | connection |
See Also
- class SqlHelper
SqlHelper.NewCommand method (2 of 2)
namespace: Serenity.Data assembly: Serenity.Net.Data
Creates new command.
public static IDbCommand NewCommand(IDbConnection connection, string commandText,
IDictionary<string, object> param)
parameter | description |
---|---|
connection | The connection. |
commandText | The command text. |
param | The parameters. |
Return Value
New command with specified command text and parameters
See Also
- class SqlHelper