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.
More Related Contents:
- Unique Constraint in Entity Framework Code First
- How to configure ProviderManifestToken for EF Code First
- Entity Framework loading child collection with sort order
- Entity Framework CTP 4 – Code First Custom Database Initializer
- How can I disable code first migrations
- SQL Server Express connection string for Entity Framework Code First
- How do I use Entity Framework in Code First Drop-Create mode?
- Nullable property to entity field, Entity Framework through Code First
- How do I remove underscore of foreign key fields in code first by convention
- Entity Framework Code First Many to Many Setup For Existing Tables
- ASP.NET MVC 2.0 Implementation of searching in jqgrid
- Code First: Independent associations vs. Foreign key associations?
- Entity Framework: “Store update, insert, or delete statement affected an unexpected number of rows (0).” [closed]
- Unique Key constraints for multiple columns in Entity Framework
- Entity Framework 6 Code first Default value
- Database first create entity framework 6.1.1 model using system.data.sqlite 1.0.93
- EF Code First “Invalid column name ‘Discriminator'” but no inheritance
- Fluent API, many-to-many in Entity Framework Core
- Entity Framework One-To-One Mapping Issues
- Can I specify global mapping rules in Entity Framework Code First?
- The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid
- Equivalent for .HasOptional in Entity Framework Core 1 (EF7)
- How to pass parameters to the DbContext.Database.ExecuteSqlCommand method?
- Using EF Core ThenInclude() on Junction tables
- How to update not every fields of an object using Entity Framework and EntityState.Modified
- Keyword not supported: “data source” initializing Entity Framework Context
- Entity Framework Data Annotations Set StringLength VarChar
- EF 4.1 loading filtered child collections not working for many-to-many
- How to map Table per Type (TPT) inheritance in Entity designer?
- DbContext AutoDetectChangesEnabled set to false detecting changes