Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. public static void UpdateItem()
  2. {
  3. using (SqliteConnection db =
  4. new SqliteConnection("Filename=sqliteSample.db"))
  5. {
  6. // Currently makes all of them change (FIX)
  7. db.Open();
  8. SqliteCommand updateCommand = new SqliteCommand
  9. ("UPDATE MyTable SET [Text_Entry]=@text", db);
  10. updateCommand.Parameters.AddWithValue("@text", "TESTING UPDATE CMD");
  11. updateCommand.ExecuteReader();
  12. db.Close();
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement