Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scaffolding EntityFramework 6 Unable to cast object of type 'System.Data.Entity.Core.Objects.ObjectContext' to 'System.Data.Objects.ObjectContext'

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?

Update

After some while, microsoft realease new upgrade for support scafolding and some others features

I think it doesn't work while you upgrade vs IDE to 2013

like image 385
Mohammadreza Avatar asked Oct 22 '13 09:10

Mohammadreza


1 Answers

I'm sorry but it is not supported ASP.NET MVC 4 scaffolding does not support Entity Framework 6 or later

like image 53
Raphael Avatar answered Oct 03 '22 04:10

Raphael