Exemplo n.º 1
0
 partial void DeleteTable_1(Table_1 instance);
Exemplo n.º 2
0
        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!");
        }
Exemplo n.º 3
0
 partial void UpdateTable_1(Table_1 instance);
Exemplo n.º 4
0
 partial void InsertTable_1(Table_1 instance);
Exemplo n.º 5
0
 partial void DeleteTable_1(Table_1 instance);
Exemplo n.º 6
0
 partial void UpdateTable_1(Table_1 instance);
Exemplo n.º 7
0
 partial void InsertTable_1(Table_1 instance);