First, start with the M section (MODLES\DAL\BLL)
1.Modles entity class: The last entity class has been taken care of.
2.DAL Data Access Class class
(1) Universal Data Access class:
A: Write the data connection string first, write to the Web site root Web. config and the <appSettings></appSettings> node
B: To read a string in a universal data access class, you must add a reference system.configuration to the Dal and then add the namespace using System.Configuration;
(2) General data Access class:
3.BLL business logic
(The signature of the method is usually the same as the name of the generic data access Class)
Bind to the session, import the reference and add the namespace using System. Web
Ii. Preparation of Part C (Controller layer)
Third, write the View section
Complete.
ASP.NET-MVC Framework Review (11)-Complete user login based on three-tier architecture and MVC