admin管理员组文章数量:1123189
entity
// 出现此错
scaffold-dbcontext : The term 'scaffold-dbcontext' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1
//解决办法 包管理器控制台中添加如下几个包
Microsoft.EntityFrameworkCore.Design
Microsoft.EntityFrameworkCore.Tools
Microsoft.EntityFrameworkCore.SqlServer
Scaffold-DbContext -Connection "Server=xxxxxx0001;Database=xxxxxx;Integrated Security=SSPI;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models\DemoDB -force
core 连接数据库(通过数据库生成Modell) - Royal丶鬼才 - 博客园 (cnblogs)
本文标签: entity
版权声明:本文标题:entity 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/biancheng/1701869331a495313.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论