Exemplo n.º 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 ();
		}
Exemplo n.º 2
0
		public static void insertDrink(Drink drink)
		{
			var conn = new SQLiteConnection (System.IO.Path.Combine (documentsFolder(), "database.db"));
			conn.Insert (drink);
			conn.Close ();
		}