Insert valve from listview to Sql (using linq to sql)
问题 i have three different Listview which is Item,quantity and price. All the items for the listview will be added from a textbox. I would like to know how can i store the listview items into my SQl database. Here is the code i use to add item into the listview. private void SalesAddItemBtn_Click(object sender, RoutedEventArgs e) { ListProductName.Items.Add(ComSalesProduct.Text); ListProductQuantity.Items.Add(txtSalesQuantity.Text); ListProductCost.Items.Add("RM " + txtSalesCost.Text+".00"); }