Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.18 KB

File metadata and controls

53 lines (35 loc) · 1.18 KB

SqlHelper.NewCommand method (1 of 2)

namespace: Serenity.Data   assemblySerenity.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


SqlHelper.NewCommand method (2 of 2)

namespace: Serenity.Data   assemblySerenity.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