All the examples I\'ve found refer to a class called ObjectContext, which doesn\'t appear to exist in CTP5. I must stress at this point, CTP5 is my first exposure to the Ent
For the sake of completeness, you can access the ObjectContext by casting the DbContext to IObjectContextAdapter:
((IObjectContextAdapter)context).ObjectContext.ObjectStateManager.ChangeObjectState(user, EntityState.Modified);
Morteza's method is much cleaner though and gets my vote.