예제 #1
0
        public void RemoveProduct(Guid productId)
        {
            var query = $"DELETE FROM Products WHERE id = @productId collate nocase";

            SqliteParameter[] parameters = { new SqliteParameter("@productId", productId) };

            SqliteUtil.Delete(query, parameters);
        }
예제 #2
0
        public void RemoveProductOption(Guid id)
        {
            var query = "DELETE FROM ProductOptions WHERE id = @Id collate nocase";

            SqliteParameter[] parameters = { new SqliteParameter("@Id", id) };

            SqliteUtil.Delete(query, parameters);
        }