脚手架EntityFramework 6无法将类型为“System.Data.Entity.Core.Objects.ObjectContext”的对象转换为“System.Data.Objects.ObjectContext” [英] Scaffolding EntityFramework 6 Unable to cast object of type 'System.Data.Entity.Core.Objects.ObjectContext' to 'System.Data.Objects.ObjectContext'
问题描述
无法检索'[myNameSpace]的元数据.Models.prod 。无法将类型为System.Data.Entity.Core.Objects.ObjectContext的对象转换为键入System.Data.Objects.ObjectContext。
EF 6是否支持脚手架?
更新
而 microsoft realease新升级支持scafolding和一些其他功能
我认为它不'当您升级到IDE时,您将无法正常工作。
对不起,但不支持
ASP.NET MVC 4脚手架不支持Entity Framework 6或更高版本
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
I'm sorry but it is not supported ASP.NET MVC 4 scaffolding does not support Entity Framework 6 or later
这篇关于脚手架EntityFramework 6无法将类型为“System.Data.Entity.Core.Objects.ObjectContext”的对象转换为“System.Data.Objects.ObjectContext”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!