public void IdopontSaveChanges(Idopont ipk) { Database.Idopontok.Attach(ipk.IdopontElem); var entry = Database.Entry(ipk.IdopontElem); entry.State = System.Data.EntityState.Modified; Database.SaveChanges(); }