Open Project below
1. Open vs2010-file-new project
2. Create an empty solution first:
Choose a different project type-visual Studio Solution-Blank solution (default. NET Framework 4), project name and location customization, here set to Usermanager and D drive under my project path below
3. Add a project to a blank solution, right-click-Add-New project
4. Select the visual c#-web-asp.net MVC 2 Web application
The new web name prefix here is the solution, plus the following. The way the web is named, the location is below the blank solution we just created, click OK, do not create the unit test project, select No, OK.
The Usermanager.web project has been created, the HomeController.cs is opened by default, and the corresponding view is in views-home-index.aspx. This is also the display of the running project, the default route is set in Global.asax, if you want to adjust the Web portal, you need to modify the code here (will be modified later).
5. In order to create a three-tier classic software architecture, in addition to the Usermanager.web (presentation layer, the MVC architecture is divided into/models/views/controller) also need to add usermanager.business (business logic Layer) for the solution Usermanager.data (data access Layer) Usermanager.model (data entity layer) Usermanager.common (Universal layer)
As with creating Usermanager.web, the project type selects the Visual c#-windows-Class library and creates additional projects.
Usermanager Solution now has 5 items to note in the black bold item, we should choose Usermanager.web, point in Usermanager.web right click, select Set as Startup Project.
At this point, the entire model has come out, you can try to run, see the effect, the next section to start using Easyui to create the user interface.
6. Direct run display results as follows
Asp.net+mvc+easyui+sqlite simple User System learning Journey (i)