示例#1
0
        private void butTestDelete_Click(object sender, System.EventArgs e)
        {
            ObjWithIdentityPK t = new ObjWithIdentityPK();

            t.Identity = short.Parse(txtId.Text);
            PersistDAL.Delete(t);
        }
示例#2
0
 private void butInsertIdentity_Click(object sender, System.EventArgs e)
 {
     ObjWithIdentityPK t=new ObjWithIdentityPK();
     t.Nom=txtValeur.Text;
     SableFin.SfinX.SimplePersistance.PersistDAL.Insert(t);
     lblPKidentity.Text=t.Identity.ToString();
 }
示例#3
0
        private void cmdTestRead_Click(object sender, System.EventArgs e)
        {
            ObjWithIdentityPK t = new ObjWithIdentityPK();

            t.Identity = short.Parse(txtId.Text);
            SableFin.SfinX.SimplePersistance.PersistDAL.Read(t);
            txtValeur.Text = t.Nom;
        }
示例#4
0
        private void butInsertIdentity_Click(object sender, System.EventArgs e)
        {
            ObjWithIdentityPK t = new ObjWithIdentityPK();

            t.Nom = txtValeur.Text;
            SableFin.SfinX.SimplePersistance.PersistDAL.Insert(t);
            lblPKidentity.Text = t.Identity.ToString();
        }
示例#5
0
 private void butTestUpdate_Click(object sender, System.EventArgs e)
 {
     ObjWithIdentityPK t=new ObjWithIdentityPK();
     t.Identity=short.Parse(txtId.Text);
     PersistDAL.Read(t);
     t.Nom=txtValeur.Text;
     PersistDAL.Update(t);
 }
示例#6
0
        private void butTestUpdate_Click(object sender, System.EventArgs e)
        {
            ObjWithIdentityPK t = new ObjWithIdentityPK();

            t.Identity = short.Parse(txtId.Text);
            PersistDAL.Read(t);
            t.Nom = txtValeur.Text;
            PersistDAL.Update(t);
        }
示例#7
0
 private void cmdTestRead_Click(object sender, System.EventArgs e)
 {
     ObjWithIdentityPK t=new ObjWithIdentityPK();
     t.Identity=short.Parse(txtId.Text);
     SableFin.SfinX.SimplePersistance.PersistDAL.Read(t);
     txtValeur.Text=t.Nom;
 }
示例#8
0
 private void butTestDelete_Click(object sender, System.EventArgs e)
 {
     ObjWithIdentityPK t=new ObjWithIdentityPK();
     t.Identity=short.Parse(txtId.Text);
     PersistDAL.Delete(t);
 }