Interface development requires a certain amount of time for both Web development and Winform development, especially for interfaces with a large number of database fields, generally, more controls need to be placed on the editing interface for data display. Every time this happens, it is a headache. Repeated mechanical operations make people very tired and annoying, however, this is required.
Because database fields are related to the page layout, you can use the database metadata of the Code Generation Tool Database2Sharp, including the table name, remarks, and field list, and the name, remarks, type, and other information of each field to construct a basic interface and quickly complete the repetitive mechanical part. This is what I call quick interface generation. Of course, the mechanical generation of exquisite interfaces certainly cannot meet our needs. Therefore, the real interface needs to be modified and improved on this basis. However, due to repetitive work, the tool has been processed, so the interface development efficiency will be greatly improved.
1. Quick Generation Based on Web interfaces
In addition to the traditional business layer, data access layer, data access interface layer, and entity layer, Code Generation Based on the javasiselibray architecture also generates a Web interface project, related reference assembly and necessary controls have been added to the Web interface project, which can be compiled and run after being generated. If some table fields are reasonably designed, they can be directly used without modifying a line of code, as shown below.
The generated project interface is as follows.
The following is the interface generated by the TB_ItemDetail table. Nothing has been modified and the effect of the List page is displayed.
The Edit and view page is also generated. You can click Connect to view the effect, as shown in.
For more details, please continue to read the highlights on the next page: