Restructuring of the charging system for vb.net Data Center-Summary (1) Business and Table Structure

Source: Internet
Author: User

Restructuring of the charging system for vb.net Data Center-Summary (1) Business and Table Structure

The Charging System of the IDC room has been in progress for some time. I have received a notification two days ago and want to spot check the IDC for reconstruction. I have also become one of them. Therefore, although the IDC room has been accepted, we have re-checked, debugged, and the entire document process again. After some guidance from Master, I have gained a lot. Further understanding of data center reconstruction.

(1) reorganize the business: Check out

In the IDC charging system, the Administrator has a checkout function to check the content for the operator.

Among them, there are card sales, card refund, income amount, etc., but no consumption amount. <喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD4KPHA + export/release + release/release + oo6yyotTawO/release + release/ew1jw6zl + dLUy/u6zdGnyfrP + release + pgltzybzcm9 "http://www.2cto.com/uploadfile/Collfiles/20150525/20150525094218208.jpg alt = "\">

In this table, the amount consumed is the real income of the school. Although the recharge amount is large, students may be able to return the card at any time. This part is not the real income of the school.

This part is clarified, so the operator's checkout button and daily statement are not linked to the weekly statement.

(2) Table Structure

In my IDC billing, the card table and student table are merged into one table.

The system strictly follows the three paradigm. Although there is nothing wrong, I think it is still necessary to start from the actual business in actual application, that is, the specific analysis of the specific business.

In a strict E-R diagram, all the object relationships should be one-to-many, there is no many-to-many, if so, we need to extract another table. The one-to-one relationship can also be placed in a table, because a student strictly corresponds to a card, and vice versa. In addition, the number of student table fields and card table fields is not very large, and placing them in a table does not cause a large amount of data.

Put it in a table. I can operate on only one table to operate on all the information. This avoids the possibility of easily modifying student information and forgetting to modify the card table, resulting in information asymmetry. The operation efficiency is also greatly improved.

I think that in actual system design, we should think more about whether to adopt the "third paradigm" instead of blindly pursuing it.

Related Article

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.