Now self-learning ASP. NET core, feeling a little poised, a lot of do not understand, a new ASP. NET Core MVC project, and can use EF codefirst Update table data, then the problem arises. After the. NET Core tool was installed, the NuGet Package Manager could not be used, and then Microsoft gave another way to implement the table's migrations and update with the command line, but how could not find the command prompt where, finally, in my efforts, Finally find out how to open the Commandprompt method. Nonsense not much to say, the following steps.
1. Tools (vs menu), external Tools
Now there are four text boxes to fill, the very important parameter is the following parameter r, this parameter will be obtained from the VS tool, as follows
Right-click to get property box
Copy and paste the target string into the parameter R text box, and the end result is as follows
The command line tool is available after the application
You can then execute the statement with the command-line tool. as follows, the migration statement
add Initialdotnet ef database update
Add mvc+ef Core Code article reference: Https://docs.microsoft.com/zh-cn/aspnet/core/tutorials/first-mvc-app/adding-model
The shortcomings of the blog, and slowly improve.
vs2015 Add a command prompt tool