Example #1
0
		public static void deleteDrink(Drink drink)
		{
			var conn = new SQLiteConnection (System.IO.Path.Combine (documentsFolder(), "database.db"));
			conn.Query<Drink> ("DELETE * FROM Drink WHERE_dateCreated=?", drink.dateAdded);
			conn.Close ();
		}
Example #2
0
		public static void insertDrink(Drink drink)
		{
			var conn = new SQLiteConnection (System.IO.Path.Combine (documentsFolder(), "database.db"));
			conn.Insert (drink);
			conn.Close ();
		}