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

后端 未结 10 481
深忆病人
深忆病人 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:29

    1. Make sure that this is available in your project.json file "Microsoft.EntityFrameworkCore.Tools.DotNet": "1.0.0-preview3-final".

    1. Run the command in the package manager console

    that's all it will work

提交回复
热议问题