Quantcast
Viewing all articles
Browse latest Browse all 10318

Commented Task: [EF6] Make sure to support the MVC design/runtime [470]

This is for tracking. MVC3 shows a bare exception message in Visual Studio 2012 when EF6 is used.

Repro step
1. Open VS 2012 in the administrative mode.
2. Create a project named MyAspNetMvc3, and choose the Empty template.
3. Add EntityFramework through the Manage NuGet Packages dialog box.
4. Add the BlogContext class and the Blog class as in the walkthrough
5. Add Controller for BlogController with 'Controller with read/write action and views using Entity Framework
6. It shows up the following dialog box. (in EF5, it shows an error message saying 'unsupported context type'

Unable to retrieve metadata for 'MyAspNetMvc3.Models.Blog'. Unable to cast object of type 'System.Data.Entity.Core.Objects.ObjectContext' to type 'System.Data.Objects.ObjectContext'.


Comments: any solution for this? MS **still** hasn't fixed this issue?

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>