Пример #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");
            }
        }
Пример #2
0
 partial void DeleteCo(Co instance);
Пример #3
0
 partial void UpdateCo(Co instance);
Пример #4
0
 partial void InsertCo(Co instance);