Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Query Method

Database.Query Method

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

Namespace:  WebMatrix.Data
Assembly:  WebMatrix.Data (in WebMatrix.Data.dll)

public IEnumerable<Object> Query(
	string commandText,
	params Object[] parameters
)

Parameters

commandText
Type: System.String
The SQL query to execute.
parameters
Type: System.Object[]
(Optional) Parameters to pass to the SQL query.

Return Value

Type: System.Collections.Generic.IEnumerable<Object>
The rows returned by the SQL query.
Show:
© 2015 Microsoft