Share the codesmith template that automatically generates DTO/dataaccess/bizobject

Source: Internet
Author: User

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.

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.