我是Asp.Net Core新手。在阅读Adam Freeman关于Asp.Net Core(2016) 的书时,我已经在我的问题之前做了所有事情,但是,我无法使用本书中所述的Update-Database Project Manager控制台命令创建数据库表。类似的话题并没有帮助我。这是错误。Pro Asp.Net 2016 nuget更新数据库cmdlet错误
Invoke must be called on a background thread.
Update-Database : The term 'Update-Database' 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
+ Update-Database
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Update-Database:String) [],
Comman
dNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
这就是您购买死树解释如何使用仍处于严重发展阶段的技术的问题;这本书在印刷之前已经过时了。只需按照asp.net网站上的文档:https://docs.microsoft.com/en-us/aspnet/core/data/ef-mvc/migrations。 – CodeCaster