Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                StudentLinqDataContext db = new StudentLinqDataContext();

                Co fac = new Co();
                fac.CourseAdded = comboBox1.Text;
                fac.StudentName = studentname;

                db.Cos.InsertOnSubmit(fac);
                db.SubmitChanges();

                MessageBox.Show("Course Added");
            }
            catch (Exception ex)
            {
                MessageBox.Show("Data Not Inserted");
            }
        }
Beispiel #2
0
 partial void DeleteCo(Co instance);
Beispiel #3
0
 partial void UpdateCo(Co instance);
Beispiel #4
0
 partial void InsertCo(Co instance);