I would say it´s because the profile
variable is not "connected" to the context. The context is not aware of the profile object. So when running context.SaveChanges()
the changes in the profile variable goes unnoticed.
You need to update the update object with the values from profile
. Or perhaps attach the profile object to the context.
Check this post on how to attach to the context prior saving Entity Framework 4 - AddObject vs Attach