The term 'scaffold-dbcontext' is not recognized as the name of a cmdlet, function, script file, or operable program

后端 未结 10 506
深忆病人
深忆病人 2020-12-13 22:50

When trying to scaffold with asp.net core this command

scaffold-dbcontext \"Data Source=(local);Initial Catalog=MyDb;Integrated Security=True;\" M

10条回答
  •  醉酒成梦
    2020-12-13 23:35

    Make sure you are using the right console, the "Package Manager Console". There is also a "Terminal" console which looks very similar, but doesn't work for this command. Package Manager Console can be found in View -> Other Windows (as of Visual Studio 2019, ver. 16.6.5)

提交回复
热议问题