Remarks
This small demand has been completed, but there is a problem that deserves further discussion. This requirement is to retrieve dynamic data from the database and bind it directly to the front-end. This is a data-driven programming idea. It is simple, flexible, and adaptable. In actual product development, you should carefully consider whether to do so. In most actual projects, most of them adopt a layered architecture to differentiate complex requirements and ensure the clarity of the system structure. When a layered architecture is adopted, you should not know the database structure or even the data table name on the interface. The requirement for this example is as follows:ArticleThere is no need to adopt a layered architecture to provide a topic. In some other small scenarios, the data-driven architecture is more convenient and appropriate. Sometimes select an appropriateProgramThe architecture is not easy. You need to balance the various requirements of the customer, the organization structure of the company, the development capability of the Department staff, and other factors. You should make appropriate choices based on the actual situation. I hope that my example will not be misleading. The main purpose of this example is to demonstrate custom message encryption, rather than promoting data-driven table binding.
It was not until today that I wrote my own articles that I realized how hard the enthusiastic people who frequently published technical blogs are. I would like to pay tribute to you again.
Example of: http://download.csdn.net/detail/wantalcs/4494183