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. |
A new command with specified command text
exception | condition |
---|---|
ArgumentNullException | connection |
- class SqlHelper
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. |
New command with specified command text and parameters
- class SqlHelper