Build the UI Layer of the Project architecture and build the ui Layer of the Architecture

Source: Internet
Author: User

Build the UI Layer of the Project architecture and build the ui Layer of the Architecture

Build the UI Layer of the Project Architecture

12. Construct the project architecture with WebHelper
  • BLLSessionFactory
    • Implement the IBLLSessionFactory interface in the ibll Layer

  • OpaerateContext
    • Define common Constants
    • Use the log assistant instance to help record logs
    • Obtain the BLLSession instance through reflection in the constructor and obtain various interfaces of the service layer.
    • Access OperateContext in singleton Mode

13. Web construction of Project architecture construction
  • Create an MVC Web Project
  • New Region
  • Configure routes

    When a region is used in an application, to avoid the Controller Name Conflict in the namespace, you need to set the namespace of the region route.

  • Configure log4net

    Log4net needs to be configured in the configuration file

 

14. AdminLogic construction for project architecture construction
  • Create an AdminLogic project, add references to the System. Web. Mvc class library, and references to the WebHelper, Core, and Models projects.

  • Create a custom workContext
  • Create a custom BaseController

    Create a custom BaseController and define the logger in BaseController to record logs and define workContext. When creating other controllers, you must inherit the BaseController

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.