Do an OA project from scratch (v) interface-oriented programming and relationship referencing between tiers

Source: Internet
Author: User

UI The previous article we have led you to build a very simple three-tier architecture, and in accordance with the Order of construction (entity class library, data access, business logic, UI, about the order of building three layers, there is no unified statement, but I am accustomed to bottom building). Once again picture (1-1) let's recall.

Figure 1-1

(i) Add a reference relationship

We are now going to reference relationships between the three tiers of each class library. Follow the previous article on the three floor to make a reference relationship. The data access layer references the Entity class library, the business logic layer references the data access, and the UI layer refers to the business logic layer, so the entity class library is referenced between the three tiers. Again, the Entity class Library is not a hierarchy in layer three, and the entity class library is nothing more than a data container that is transferred in layer three. I'll use the modeling tool in VS to draw the reference relationship first.

This is a sample diagram of our citation relationship, and for our vs project, adding a reference is simple. Let's take a look at how to add a reference.

Data access referencing entity class libraries

business Logic Layer Reference

Above is the reference relationship of the UI layer

Do an OA project from scratch (v) interface-oriented programming and relationship referencing between tiers

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.