Guest User

Untitled

a guest
Nov 15th, 2013
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. internal static DataSet executeQuery(string query)
  2. {
  3. DataSet data;
  4. using (SQLiteConnection connection = new SQLiteConnection("Data Source=data.db"))
  5. {
  6. SQLiteDataAdapter adapter = new SQLiteDataAdapter(query, connection);
  7. data = new DataSet();
  8. adapter.Fill(data, "Data");
  9. }
  10.  
  11. return data;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment