scaffold-dbcontext “Data Source=(local);Initial
Catalog=MyDb;Integrated Security=True;”
Microsoft.EntityFrameworkCore.sqlserver -outputdir Models
给出了这个错误.
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
+ scaffold-dbcontext “Data Source=(local);Initial Catalog=MyDB;In …
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (scaffold-dbcontext:String) [],CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
我尝试过解决方案here,但它对我不起作用.
知道原因/治疗方法是什么吗?
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。