SQLiteConnectionQueryT Method (String, Object) |
Creates a SQLiteCommand given the command text (SQL) with arguments. Place a '?'
in the command text for each of the arguments and then executes that command.
It returns each row of the result using the mapping automatically generated for
the given type.
Namespace:
SQLite
Assembly:
RebornBuddy (in RebornBuddy.exe) Version: 3.3.1; net-4.5.win32; release
Syntax public List<T> Query<T>(
string query,
params Object[] args
)
where T : new()
Parameters
- query
- Type: SystemString
The fully escaped SQL.
- args
- Type: SystemObject
Arguments to substitute for the occurences of '?' in the query.
Type Parameters
- T
Return Value
Type:
ListT
An enumerable with one result for each row returned by the query.
See Also