CodeSmith and Dreamweaver

Source: Internet
Author: User

Download Sample

Maybe you are using CodeSmith or MyGeneration to generate nhib.pdf, EasyObject, or even Php, jsp, and other database-related stuff. Is a lot of code a headache? Why not try Dreamweaver? The sample took 1.5 hours and included some interface design.

Steps:

1. Download the package and place it in the IIS directory. You can also create a virtual directory. Set this directory to a readable directory because I have not created default pages or index pages.

2. Modify the connection string in \ connections \ bbt. asp in the directory as needed.

3. the browser uses http: // localhost/cg /***. asp open the entity_generator.asp file under this directory (you can see other files, but you cannot do it). Click the table name on the left to view the result :)

Condition:

1. for programming, you need to know a language supported by Dreamweaver (asp, php, jsp, cfm ...), I know how to use DW for dynamic web pages (common operations such as database connection, record set, cyclic area, and parameter acquisition). Here I use asp

2. in terms of databases, You can theoretically Support databases that are familiar with ODBC and OLDDb, and you need to know how to obtain database architecture information (sqlserver can read system tables, read information_schema, and cannot remember a name; oracle, mysql, and so on)

3. master the writing of a target code you want to generate, which are public, which are related to fields, and what can be done. Don't be afraid that the code is too large, because Dreamweaver can help you complete it, what you need to do isDesign a set of blank questionsLet Dreamweaver do it.

4. Then, just like developing a news page or forum page quickly,96%The code is DW to help you! Do not worry about whether the code generated by DW is garbage or redundant, but it can complete this basic function: theoretically, most languages and most databases.

5. If you are familiar with it, you can reconstruct and encapsulate this program, publish it to cnblogs like Li Tianping, Fei, listener Tang, and others, and then open-source is an enjoyable solution. I have tested their stuff, but they are all very rigid code. It is not as powerful as codesmith, but codesmith's Development template workload is not small. I hope anyone can rebuild these tools to carry forward.

I think: tool maintenance software is more convenient than complicated design architecture!

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.