私は問題があります。私のクラスでは、product_ID を int32 として、product__price を 10 進数として定義しました。テキストボックスを使用してデータベースにデータを保存する必要がある場合、変換できません。できれば助けてください。ありがとうございました。
public Int32 Product_ID { get; set; }
public String Product_name { get; set; }
public String Product_category { get; set; }
public Decimal Product_price { get; set; }
public string image_location { get; set; }
Product product = new Product();
product.Product_ID = int.Parse(textBox1.Text);
product.Product_name = textBox2.Text;
product.Product_category = textBox3.Text;
product.Product_price = int.Parse(textBox4.Text);
product.image_location = textBox5.Text;
Product.Save(product);