public void UpdateObj(someobject obj) {
db.Entry(obj).State = EntityState.Modified; db.SaveChanges(); }