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