vs2015 Add a command prompt tool

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.