2005-9-13: The bizobject. CST file is updated. If this file exists in the original file, it will be overwritten.
If you have anyCodeTemplate, can we share it with us? I plan to build a team that shares the codesmith template and share our template (there are already many templates on the codesmith Forum ).
As long as you click the button, some code of the DTO object and its collection class, data volume class, and business layer class is automatically generated to form three directories: model, dataaccess, and Biz, and generate the corresponding.
Mytemplates.rar
Updated bizobject. CST
Prerequisites:
1. We recommend that you name a table in the form of a complex number when creating a database table. The field name should not be the same as the table name.
2. Set the primary key of the table.
3. Set the foreign key of the table.
4. Create a table index.
Main features:
1. One-to-many and multi-to-one relationships are supported.
2. Supports like queries.
Usage:
1. Complete the steps mentioned in "prerequisite.
2. Use allstoredprocedures. CST to generate all stored procedures
3. Use model \ bulk. CST to generate all files
Disadvantages:
1. I just created it, and I haven't come to test it in detail yet.
2. stored procedures with the same features may occur. You can delete one of them, and the next version plans to fix this issue.
(Although there are their own enterpriselibrary applicationsProgramThe template of the block, but there is no content, which will be provided later)
If you have any good architecture, I can help you establish a template and hope to provide more comments on this template.
Edra, GBI, andWS-I basic security profile sample applicationAnd are interested in learning together.