Database.QuerySingle(String, Object[]) Database.QuerySingle(String, Object[]) Database.QuerySingle(String, Object[]) Method

Definition

Executes a SQL query that returns a single row as the result.

public dynamic QuerySingle (string commandText, params object[] args);
member this.QuerySingle : string * obj[] -> obj
Public Function QuerySingle (commandText As String, ParamArray args As Object()) As Object
Parameters
commandText
String String String

The SQL query to execute.

args
Object[]

(Optional) Parameters to pass to the SQL query.

Returns

The single row returned by the SQL query.

Applies to