public void SubmitNewBuyFactor() { Buy_factor jadid = new Buy_factor(); jadid.seller_company = Combo_sherkat.SelectedItem.ToString(); jadid.price = int.Parse(txt_price.Text); jadid.product_name = Combo_Kala.SelectedItem.ToString(); jadid.unit = lbl_unit.Text; jadid.description = txt_description.Text; jadid.amount = int.Parse(txt_amount.Text); jadid.sum_buy = (jadid.price) * (jadid.amount); jadid.date = date_date.SelectedDate; db.Buy_factors.InsertOnSubmit(jadid); db.SubmitChanges(); }
partial void UpdateBuy_factor(Buy_factor instance);
partial void DeleteBuy_factor(Buy_factor instance);
partial void InsertBuy_factor(Buy_factor instance);