private void button2_Click_1(object sender, EventArgs e) { Symptom_List a = new Symptom_List(); if (textBox2.Text != string.Empty) { a.Name = textBox2.Text; h.Symptom_Lists.InsertOnSubmit(a); h.SubmitChanges(); GridViewUpdate(); } else { MessageBox.Show("Please insert Name of Symptom !!!"); } }
partial void UpdateSymptom_List(Symptom_List instance);
partial void DeleteSymptom_List(Symptom_List instance);
partial void InsertSymptom_List(Symptom_List instance);