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

Definition

Executes a SQL query that returns a list of rows as the result.

public System.Collections.Generic.IEnumerable<dynamic> Query (string commandText, params object[] parameters);
member this.Query : string * obj[] -> seq<obj>
Public Function Query (commandText As String, ParamArray parameters As Object()) As IEnumerable(Of Object)
Parameters
commandText
String String String

The SQL query to execute.

parameters
Object[]

(Optional) Parameters to pass to the SQL query.

Returns

The rows returned by the SQL query.

Applies to