I\'ve been using ObjectContexts
for quite a long time now. Now that I\'ve installed VS 2012, for my surprise the Entity Data Model does not have an option for a Cod
I'm not sure how to make an EDMX generate using ObjectContext
, but no it is not deprecated. DbContext
is used because for 99% of users, the functionality of ObjectContext
is not needed.
You can get a reference to an ObjectContext from a DbContext
, though: ((IObjectContextAdapter)dbContext).ObjectContext