private void button2_Click(object sender, EventArgs e) { Test_List a = new Test_List(); if (textBox2.Text != string.Empty) { a.Name = textBox2.Text; h.Test_Lists.InsertOnSubmit(a); h.SubmitChanges(); GridViewUpdate(); } else { MessageBox.Show("Please insert Name of Test !!!"); } }
partial void UpdateTest_List(Test_List instance);
partial void DeleteTest_List(Test_List instance);
partial void InsertTest_List(Test_List instance);