Entity Framework Code First – No Detach() method on DbContext

For people that might stumble upon this question, as of CTP5 you now need to write

((IObjectContextAdapter)context).ObjectContext

in order to get to ObjectContext.

Leave a Comment