vs2015 make a super simple MVC project

Use vs2015 make a super simple MVC project

This link: https://blog.csdn.net/qq_40919762/article/details/100705314

Straight to
a create a asp.net web project
Here Insert Picture Description
// create an empty project, not empty space does not matter, the main option is to hook on MVC
Here Insert Picture Description
// then identified created a good
start into the topic
Second, create a following in APP_Data new items, that is, sql server database, created after a good point, double-click to go
Here Insert Picture Description
after // into it creates a new table, fill in the various fields into the upper right corner and then click on the update
Here Insert Picture Description
// and this data table is built the
three added a model, click on the models folder right-click Add New item, create an ADO.NET entity data type
Here Insert Picture Description
// Next select from a database EF Designer
// the next step after the next, the table where the hook on the line, click completed
Here Insert Picture Description
four add controllers
// Right-click on the program name rebuild the program, then right-click the folder controllers add a controller, select the bottom click Add a
Here Insert Picture Description
// model class with their choice of the same show, and then select the data context class, click Add, then the project be built, now running about
Here Insert Picture Description
five clicks views, then click on the data table the same name as the folder, double-click the I ndex.cshtml Open, and then click Run
Here Insert Picture Description
// And then, here all of the steps completed

Guess you like

Origin www.cnblogs.com/wfy680/p/11961627.html