Ejemplo n.º 1
0
        private void button5_Click(object sender, EventArgs e)
        {
            dataBaseContex db = new dataBaseContex();
            resid          r  = new resid();

            r.SerialNumber = "1111";
            r.Date         = DateTime.Now;
            db.resids.Add(r);
            db.SaveChanges();
        }
Ejemplo n.º 2
0
 public void Update()
 {
     model       = new resid();
     view.Number = model.SerialNumber;
     //  view.Date = model.Date;
     view.Refrence    = model.Refrence;
     view.Description = model.Description;
     if (model.Goods.Count > 0)
     {
         for (int i = 0; i < model.Goods.Count; i++)
         {
         }
     }
 }