Quick Generation of code generation tools

Source: Internet
Author: User

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:

  • 1
  • 2
  • 3
  • 4
  • Next Page

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.