ASP.NET-MVC Framework Review (11)-Complete user login based on three-tier architecture and MVC

Source: Internet
Author: User

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

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.