Recently, I made a factory-based CodeSmith web project template, including DAL layers and BLL layers. The entire website architecture and PETSHOP are basically the same: myallstoredprocedures.cst: Specify the database Generate all stored procedures Mybll.cst: business logic MyDalFactory.cst: DAL factory MyDataChe.cst: DAL data cache class Myidal.cst: DAL interface MyModelobject.cst: physical class MySQLSerVerdal.cst: SQLServerdal Data Access Layer mysqlutil.cst: SQLUTIL class MyStoredProcedures.cst: Specify the table Generate stored procedure mytemplate.cst: Generate all files, output all the code generated by all templates NOTE: Use myTemplate.cst to generate all .cs files Specify the directory, only generate a stored procedure with myallStoredProcedures.cst or MyStoredProcedures.cst, and the above template files can be used separately. This version is a test version. Due to the time relationship, just simply test it. If there is a mistake, please forgive me. Click here to download myTemplates.rar use this set of test items ELFINNET.rar
Http://justicfu.cnblogs.com/archive/2006/06/21/431690.html