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); }
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); }