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