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();
        }
        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();
        }
        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();
        }
Esempio n. 4
0
 partial void Deletemsmember(msmember instance);
Esempio n. 5
0
 partial void Updatemsmember(msmember instance);
Esempio n. 6
0
 partial void Insertmsmember(msmember instance);