我安装了'Entity Framework Power Tools Beta 2',我想简单地反向映射我的数据库架构。我在解决方案资源管理器中右键单击该项目,然后单击“实体框架 - >反向工程师代码优先”,指定连接属性,我在输出窗口中收到以下错误。知道什么可能是错的吗?
System.MissingMethodException: Method not found: 'System.Xml.XmlReader System.Data.Common.DbProviderServices.GetConceptualSchemaDescription()'.
at System.Data.Entity.Design.EntityStoreSchemaGenerator.GetProviderSchemaMetadataWorkspace(DbProviderServices providerServices, DbConnection providerConnection)
at System.Data.Entity.Design.EntityStoreSchemaGenerator.CreateStoreSchemaConnection(String providerInvariantName, String connectionString)
at System.Data.Entity.Design.EntityStoreSchemaGenerator..ctor(String providerInvariantName, String connectionString, String namespaceName)
at Microsoft.DbContextPackage.Handlers.ReverseEngineerCodeFirstHandler.ReverseEngineerCodeFirst(Project project)
答案 0 :(得分:0)
看起来您的盒子上安装了Entity Framework 2011年6月CTP。你需要卸载它。在此处查看更多详细信息:http://blog.3d-logic.com/2012/04/11/entity-framework-zombie-a-k-a-microsoft-entity-framework-june-2011-ctp/