最近自己做了一个基于工厂模式的codesmith web项目模板,包括DAL层和BLL层。整个网站架构和petshop基本相同:
(转)发布一套web codesmith模板

MyAllStoredProcedures.cst: 指定数据库生成所有存储过程
MyBLL.cst:                         业务逻辑
MyDALFactory.cst:             DAL工厂
MyDataCache.cst:               DAL数据缓存类
MyIDAL.cst:                       DAL接口
MyModelObject.cst:            实体类
MySQLServerDAL.cst:    SQLServerDAL数据访问层
MySQLUtil.cst:                 SQLUtil类
MyStoredProcedures.cst:  指定表生成存储过程
MyTemplate.cst:               生成所有文件,输出以上所有模板生成的代码

Note:
使用MyTemplate.cst生成所有.cs文件到指定目录,只用MyAllStoredProcedures.cst或MyStoredProcedures.cst生成存储过程,以上各模板文件可单独使用。

本版本为测试版本,由于时间关系,只是简单测试一下,如果有错误请见谅。
点击这里下载 MyTemplates.rar
用此套模板生成的测试项目 ElfinNet.rar

http://justicfu.cnblogs.com/archive/2006/06/21/431690.html



Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=821764


相关文章:

  • 2022-02-10
  • 2021-11-25
  • 2022-02-19
  • 2021-08-29
  • 2021-06-27
  • 2021-07-25
  • 2021-08-29
  • 2022-12-23
猜你喜欢
  • 2022-02-02
  • 2021-10-24
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2021-07-27
  • 2021-06-16
相关资源
相似解决方案