Database.Query(String, Object[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The SQL query to execute.
- parameters
- Object[]
(Optional) Parameters to pass to the SQL query.
Returns
The rows returned by the SQL query.