partial void DeleteTable_1(Table_1 instance);
private void uploadButton_Click(object sender, EventArgs e) { var boardId = textBox2.Text; char groupId = Convert.ToChar(textBox1.Text); var cap = getCap(); /* Grab data from spreadsheet and place in lists */ for (int i = 0; i < 100; i++) { var onTime = Convert.ToSingle(dataGridView1.Rows[i].Cells[1].Value); var res = new EET321_Lab6DataContext(); var data = new Table_1(); data.GroupID = groupId; data.BoardID = boardId; data.DateTime = DateTime.Now; data.OnTime = onTime; data.Step = i; data.Capacitance = cap; res.Table_1s.InsertOnSubmit(data);//insert data to server res.SubmitChanges(); //submit changes } System.Windows.Forms.MessageBox.Show("Upload complete!"); }
partial void UpdateTable_1(Table_1 instance);
partial void InsertTable_1(Table_1 instance);
partial void DeleteTable_1(Table_1 instance);
partial void UpdateTable_1(Table_1 instance);
partial void InsertTable_1(Table_1 instance);