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!