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(); }
public void update(user t) { DB.users.Attach(t); DB.Entry(t).State = System.Data.Entity.EntityState.Modified; DB.SaveChanges(); }
public void update(autorization t) { DB.Entry(t).State = System.Data.Entity.EntityState.Modified; DB.SaveChanges(); }
public void update(sitepage t) { DB.sitepages.Attach(t); DB.Entry(t).State = System.Data.Entity.EntityState.Modified; DB.SaveChanges(); }