Mvc3 + codefirst learning notes

Source: Internet
Author: User

● Mvc3 Chinese version:

Mvc3 folder description:

Folder Function
/Controllers Controllers processes input from the browser, determines what to do, and returns the result to the user
/Views Views includes a UI Template
/Models Models contains data and operations on Data
/Content Including images, CSS, and other static content
/Script Contains JavaScript files
/Add_data Contains database files (Note: It is usually used to save database files released along with the website, such as SQL express database and Access Database configured for the website. You can ignore SQL Server, MySQL, and other databases)

Mvc3 creation steps:

Step1. create an "empty" Asp.net mvc3 project and set the view engine to razor.

* Directly clicking "run" will directly access http: // localhost: 31207/. The resource cannot be found because there is no content in it. Select the Internet application template when creating the project. A default executable page is generated.

Step2. efcodefirst:

1) tool download

Ctp5 (Entity Framework feature): codefirst uses EntityCodeAutomatic database creation   

Codefirst auxiliary tool: EF power tool Generate a model class based on the database and generate EF generated view to improve EF Performance 

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.