从现有的数据库EF7产生code

编程入门 行业动态 更新时间:2024-10-28 21:24:40
本文介绍了从现有的数据库EF7产生code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我试图生成code 从我数据库,但我得到错误: System.AggregateException:出现一个或多个错误。 --->未找到方法

I'm trying to generate code from my database but i get errors : System.AggregateException: One or more errors occurred. ---> Method not found

这是我的project.json:

this is my project.json:

{ "webroot": "wwwroot", "version": "1.0.0-*", "dependencies": { "Microsoft.AspNet.Mvc": "6.0.0-beta5", "Microsoft.AspNet.Server.IIS": "1.0.0-beta7", "Microsoft.AspNet.Server.WebListener": "1.0.0-beta5", "Microsoft.AspNet.StaticFiles": "1.0.0-beta5", "EntityFramework.SqlServer": "7.0.0-beta8-15797", "EntityFramework.Commands": "7.0.0-beta8-15797", "EntityFramework.SqlServer.Design": "7.0.0-beta8-15797", "Remotion.Linq": "2.0.0-rc-001" }, "commands": { "web": "Microsoft.AspNet.Hosting --config hosting.ini", "ef": "EntityFramework.Commands" }, "frameworks": { "dnx451": { }, "dnxcore50": { } }, "exclude": [ "wwwroot", "node_modules", "bower_components" ], "publishExclude": [ "node_modules", "bower_components", "**.xproj", "**.user", "**.vspscc" ] }

如何生成code从现有的数据库EF7

How do i Generating code from an existing database EF7

我使用这个命令:

dnx ef dbcontext scaffold "ConnectionString" EntityFramework.SqlServer

感谢您。

推荐答案

升级所有的包是一致的。你有beta5的和β8混合。如果您仍然遇到错误,请检查或文件及发行到适当的存储库。 github/aspnet

Upgrade all packages to be consistent. You have beta5 and beta 8 mixed. If you still experience errors, please check or file and issue to the appropriate repository. github/aspnet

更多推荐

从现有的数据库EF7产生code

本文发布于:2023-11-14 03:22:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1586078.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据库   code

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!