Some Problems in actual operations of the MVC tutorial on Microsoft ASP. NET official website

Source: Internet
Author: User

I always recommend that you directly read the official website www.asp.net developed by Microsoft Asp.net. However, its tutorials are often updated quickly. For example, MVC's "ASP. net mvc tutorials" is updated several times. The earliest example in Beta is a task list. Currently, the translation tutorial on the msdn Chinese website is based on that version, but now the demo of the mvc1 official version has already become a movie list, so you should read the English version.

 

If you follow the official Asp.net demo step by step, you will often encounter some special problems 《
Data Access tutorials has long been proved. What are the problems in MVC? The following are listed one by one:

1. Mysterious"Movie Set":

If your operating system is in simplified Chinese and Visual Studio is in simplified Chinese, congratulations. In the first chapter of the tutorial "Create a Movie Database Application in 15 minutes with ASP. net mvc ",Listing 2You are required to write

Return View (_ dB. movieset. tolist ());

However, you will find that the smart sensing attribute of the _ DB object is only "movie set" but not "movieset". Unfortunately, you can refer to the msdn Chinese forum to find that this is caused by different local languages, if you install Visual Studio in English, this problem will not occur, alternatively, if your operating system is in English, you can set the language of Visual Studio to "the same as the operating system". However, Visual Studio does not provide language packs.ProgramThe advice provided by the official forum is to refer to how to make Visual Studio use both French and English on a French blog, install Visual Studio in both the English and simplified Chinese versions on your machine. In fact, you don't need to be so troublesome.Figure 07In this step:

 

 
 

Click the movies object and press F4. you can see that its namespace is "movie set" and changed to "movieset.

Related Article

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.