Beginners Learn MVC Record: Understand the role and usage of various libraries

Source: Internet
Author: User
Tags md5 encryption

The MVC pattern is: Model-View-controller

    • Model: Is the part of the application that handles application data logic. Typically model objects are responsible for accessing data in the database
    • View: Is the part of the application that handles the display of data, typically a view created from a model database
    • Controller: Is the part of the application that handles user interaction. Typically the controller is responsible for reading data from the view, controlling user input, and sending data to the model
This is one of the back-office management solutions that I used to learn about MVC. For this solution, the use and function of the Project class library
    • BLL Class Library: This is our implementation of the business logic layer, the implementation of the database access layer of the abstract implementation
    • Common class Library: specifically used to store some common information classes, such as: MD5 encryption algorithm class, file upload, format conversion and so on.
    • Dal class Library: Implementation of the database access layer. We need to operate the database (additions and deletions). So we encapsulate a base interface. Used to implement the operation of the database. Then the other database access layer objects only need to inherit from the base interface to implement the operation of the database.
    • IBLL Class Library: The business Logic interface layer, which is used to store the interface of the business logic, realizes the idea and the database access layer's thought is consistent.
    • Idll class Library: The database access interface layer, used to hold the interface information of the database access layer, because we operate on the database, so encapsulates a base interface, and then let other objects inherit from the base interface
    • Model class libraries: Models for storing database table entities. Here I am using the EF (Entity Framework model) framework to manipulate the database
    • UI layer: Is the presentation layer, responsible for the display of the page. I used the Mvc4+easyui implementation of the interface in the practice. In the UI layer package contains the MVC framework (Model-view-controller)

Beginners Learn MVC Record: Understand the role and usage of various libraries

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.