Esempio n. 1
0
 public void update(product t)
 {
     using (satissitesivol1DBEntities DB = new satissitesivol1DBEntities())
     {
         DB.products.Attach(t);
         DB.Entry(t).State = System.Data.Entity.EntityState.Modified;
         DB.SaveChanges();
     }
 }
 public void update(entity.repository t)
 {
     DB.repositories.Attach(t);
     DB.Entry(t).State = System.Data.Entity.EntityState.Modified;
     DB.SaveChanges();
 }
Esempio n. 3
0
 public void update(user t)
 {
     DB.users.Attach(t);
     DB.Entry(t).State = System.Data.Entity.EntityState.Modified;
     DB.SaveChanges();
 }
Esempio n. 4
0
 public void update(autorization t)
 {
     DB.Entry(t).State = System.Data.Entity.EntityState.Modified;
     DB.SaveChanges();
 }
Esempio n. 5
0
 public void update(sitepage t)
 {
     DB.sitepages.Attach(t);
     DB.Entry(t).State = System.Data.Entity.EntityState.Modified;
     DB.SaveChanges();
 }