0

我安装了“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)
4

1 回答 1

0

看起来实体框架 2011 年 6 月 CTP 已安装在您的盒子上。你需要卸载它。在此处查看更多详细信息:http: //blog.3d-logic.com/2012/04/11/entity-framework-zombie-aka-microsoft-entity-framework-june-2011-ctp/

于 2012-05-03T18:15:36.033 回答