SQLiteConnectionDeferredQueryT 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 IEnumerable<T> DeferredQuery<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:
IEnumerableT
An enumerable with one result for each row returned by the query.
The enumerator will call sqlite3_step on each call to MoveNext, so the database
connection must remain open for the lifetime of the enumerator.
See Also