db.constructionLog.Attach(log); db.Entry(log).State = System.Data.Entity.EntityState.Modified; db.SaveChanges();