SHARE
TWEET

Untitled

a guest Jun 16th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top