Click or drag to resize
DatabaseConnectionQuery Method (IDatabaseConnection, String, Object)
Compiles a SQL statement with provided bind parameter values, returning the an IEnumerableT of rows in the result set.

Namespace: SQLitePCL.pretty
Assembly: SQLitePCL.pretty (in SQLitePCL.pretty.dll) Version: 1.0.0.0 (1.0.0)
Syntax
public static IEnumerable<IReadOnlyList<IResultSetValue>> Query(
	this IDatabaseConnection This,
	string sql,
	params Object[] values
)

Parameters

This
Type: SQLitePCL.prettyIDatabaseConnection
The database connection.
sql
Type: SystemString
The SQL statement to compile and Query.
values
Type: SystemObject
The bind parameter values.

Return Value

Type: IEnumerableIReadOnlyListIResultSetValue
An IEnumerableT of rows in the result set.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDatabaseConnection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also