I wanna use Scaffolding in EntityFrameWork 6, but get this:
Unable to retrieve metadata for '[myNameSpace].Models.prod'. Unable to cast object of type 'System.Data.Entity.Core.Objects.ObjectContext' to type 'System.Data.Objects.ObjectContext'.
Does EF 6 support scaffolding?
I think it doesn't work while you upgrade vs IDE to 2013
I'm sorry but it is not supported ASP.NET MVC 4 scaffolding does not support Entity Framework 6 or later
I was battling with this kind of problem for almost 3 days, but I later found two solutions:
Select an internet application option of the ASP.NET MVC project template on Visual Studio 2012. By default Entity framework 5 came with it so there is no need to run your package manager console again.
Best of luck!