Пример #1
0
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            tClass x = new tClass();

            x.f年級   = txtGrade.Text;
            x.f班號   = txtClass.Text;
            x.f導師姓名 = txtName.Text;
            x.f學級年度 = txtYear.Text;

            dbDemoDataContext db = new dbDemoDataContext();

            db.tClass.InsertOnSubmit(x);
            db.SubmitChanges();
            lblMsg.Visible = true;
            lblMsg.Text    = "新增資料成功";
        }
Пример #2
0
 partial void UpdatetClass(tClass instance);
Пример #3
0
 partial void DeletetClass(tClass instance);
Пример #4
0
 partial void InserttClass(tClass instance);