Development of ASP.net public platform (II.) multi-layer architecture framework and portal implementation

Source: Internet
Author: User

The previous article has designed a relatively perfect database, this beginning into the code. The first design of the database script in the database execution, build the database, and then build the project in VS, in order to facilitate understanding and viewing, I designed a very straightforward class name and file name, no namespace prefix.

Using the interface, a total of 8 projects: 7 class libraries and an MVC project, respectively:

Display Layer--MVC Project

Business Logic Layer--access interface IBLL, concrete implementation BLL

Data access Layer--access interface Idal, concrete implementation DAL

Data (model)--datamodel

General Method--common

Warehousing--factory

Storage here is not for the production of business logic layer and data access layer interface, but to store entityframework context objects and some cache management, business logic layer and data Access layer interface production (implementation) work I will give spring.net injection implementation. After the frame is built, the following:

Frame Well, then add the database, add the new item in the DAL (note that the DAL is not datamodel), and select the data--ado.net Entity Data Model:

Take a name, call it Weixinmodel, choose to build from the database, configure the database to connect to the previously generated database, the next step, the final load to edmx, on the edmx right--Add code generation items, select the code:

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.