Recently I made a factory-based codesmith WEB Project template, including the Dal layer and BLL layer. The architecture of the entire website is basically the same as that of petshop:
Myallstoredprocedures. CST: Specifies the database to generate all stored procedures.
Mybll. CST: business logic
Mydalfactory. CST: Dal Factory
Mydatacache. CST: Dal data cache class
Myidal. CST: Dal Interface
Mymodelobject. CST: entity class
Mysqlserverdal. CST: sqlserverdal data access layer
Mysqlutil. CST: sqlutil class
Mystoredprocedures. CST: Specifies the Stored Procedure for table generation.
Mytemplate. CST: generate all files and output the code generated by all the above templates.
Note:
Use mytemplate. CST to generate all. CS files to the specified directory. Use myallstoredprocedures. CST or mystoredprocedures. CST to generate a stored procedure. The preceding template files can be used independently.
This version is a test version. Due to the time relationship, it is just a simple test. If there is an error, please forgive me.
Click here to download mytemplates.rar
Test Project elfinnet.rar generated using this template
Http://justicfu.cnblogs.com/archive/2006/06/21/431690.html
Trackback: http://tb.blog.csdn.net/TrackBack.aspx? Postid = 821764