예제 #1
0
        private void Btndelete_Click(object sender, EventArgs e)
        {
            msmember member = new msmember();

            member = db.msmembers.Single(x => x.memberid == Convert.ToInt32(txtid.Text));
            db.msmembers.DeleteOnSubmit(member);
            db.SubmitChanges();
            load();
        }
예제 #2
0
        private void Btnupdate_Click(object sender, EventArgs e)
        {
            msmember member = new msmember();

            member           = db.msmembers.Single(x => x.memberid == Convert.ToInt32(txtid.Text));
            member.name      = txtname.Text;
            member.email     = txtemail.Text;
            member.handphone = txthandphone.Text;
            db.SubmitChanges();
            load();
        }
예제 #3
0
        private void Btninsert_Click(object sender, EventArgs e)
        {
            msmember member = new msmember();

            member.name      = txtname.Text;
            member.email     = txtemail.Text;
            member.handphone = txthandphone.Text.ToString();
            member.joindate  = dateTimePicker1.Value;
            db.msmembers.InsertOnSubmit(member);
            db.SubmitChanges();
            load();
        }
예제 #4
0
 partial void Deletemsmember(msmember instance);
예제 #5
0
 partial void Updatemsmember(msmember instance);
예제 #6
0
 partial void Insertmsmember(msmember instance);