Beispiel #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     Entity.Customer ec = new Entity.Customer();
     ec.Address = textBox1.Text;
     ec.Phoneno = textBox2.Text;
     BLL.BLL bb = new BLL.BLL();
     try
     {
         bb.Update(ec);
         MessageBox.Show("更新成功");
     }
     catch
     {
         MessageBox.Show("更新失败");
     }
 }