示例#1
0
        public void SaveLove()
        {
            string table = GetCurrentListFromMain();

            if (!string.IsNullOrEmpty(table))
            {
                using (MySqlite mySqlite = new MySqlite("mylist"))
                {
                    mySqlite.ExecuteSql($"update {table} set favorites={ DetailMovie.favorites} where id='{DetailMovie.id}'");
                }
            }
            else
            {
                DataBase.UpdateMovieByID(DetailMovie.id, "favorites", DetailMovie.favorites, "string");
            }
        }