Example #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();
        }
 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++)
         {
         }
     }
 }