Exemplo n.º 1
0
        public void setProdact(string prodactionname, string prodactioncount, string prodactioncost)
        {
            ProdactionSet prodaction = new ProdactionSet
            {
                ProdactionName  = prodactionname,
                ProdactionCount = prodactioncount,
                ProdactionCost  = prodactioncost
            };

            ukrzaliznutsaDBEntities.ProdactionSet.Add(prodaction);
            ukrzaliznutsaDBEntities.SaveChanges();
        }
Exemplo n.º 2
0
 private void Save()
 {
     Dispatcher.Invoke(() =>
     {
         UkrzaliznutsaDBEntities ukrzaliznutsaDBEntities = new UkrzaliznutsaDBEntities();
         ProdactionSet prodactionSet = new ProdactionSet
         {
             ProdactionName  = ProdactionName.Text,
             ProdactionCount = ProdactionCount.Text,
             ProdactionCost  = ProdactionCost.Text
         };
         ukrzaliznutsaDBEntities.ProdactionSet.Add(prodactionSet);
         ukrzaliznutsaDBEntities.SaveChanges();
     });
 }