-
Notifications
You must be signed in to change notification settings - Fork 0
Method Select
Louis Richard edited this page Nov 22, 2019
·
4 revisions
This method execute a given select query
- Parameter
- string query
- The select query you wish to execute
- string query
- returns
- SQLiteDataReader
- The query result
- SQLiteDataReader
First, we open a connection with the SQLite database using the ConnectToDatabase method.
Using what ConnectToDatabase returns, define the next query to execute using the CommandText attribute.
Then, we use ExecuteReader to execute the query. ExecuteReader returns the result of said query.
We, then, close the database connection using ConnectToDatabase with the parameter true.
Finally, we return the query result.

Please, when using this project for your own, write a comment to say where you got it from :)
That's all I'm asking for.