实例介绍
可以连接oracle的CodeSmith自动生成代码工具,需要安装CodeSmith及数据库客户端。可以自动生成实体类及数据库操作层代码,方便快捷。
【实例截图】
【核心代码】
三层构架的CodeSmith模板--oracle--修改后
└── 三层构架的CodeSmith模板--oracle--修改后
├── Bll
│ ├── aa
│ ├── DBMad.BLL.cst
│ ├── DBMad.DAL.csp
│ ├── DBMad.DAL.cst
│ └── DBMad.Models.cst
├── CodeGenerator.cst
├── DBDocumenter
│ ├── ActiproSoftware.SQL.xml
│ ├── Database.csp
│ ├── DBDocumenterTemplate.cs
│ ├── footer.cst
│ ├── general.cst
│ ├── header.cst
│ ├── master.cst
│ ├── output
│ │ ├── dbdocs.css
│ │ ├── images
│ │ │ ├── arrow.gif
│ │ │ ├── check_icon.gif
│ │ │ ├── database_icon.gif
│ │ │ ├── folder_icon.gif
│ │ │ ├── key_icon.gif
│ │ │ ├── server.gif
│ │ │ ├── server_icon.gif
│ │ │ ├── stored_proc_icon.gif
│ │ │ ├── tables_icon.gif
│ │ │ ├── unchecked_icon.gif
│ │ │ └── views_icon.gif
│ │ ├── index.html
│ │ ├── sproc_0.html
│ │ ├── sproc_1.html
│ │ ├── sproc_2.html
│ │ ├── sproc_3.html
│ │ ├── sproc_4.html
│ │ ├── sproc_5.html
│ │ ├── sproc_6.html
│ │ ├── sproc_details_0.html
│ │ ├── sproc_details_1.html
│ │ ├── sproc_details_2.html
│ │ ├── sproc_details_3.html
│ │ ├── sproc_details_4.html
│ │ ├── sproc_details_5.html
│ │ ├── sproc_details_6.html
│ │ ├── sprocs.html
│ │ ├── sproc_summary.html
│ │ ├── table_details_0.html
│ │ ├── table_details_10.html
│ │ ├── table_details_11.html
│ │ ├── table_details_12.html
│ │ ├── table_details_1.html
│ │ ├── table_details_2.html
│ │ ├── table_details_3.html
│ │ ├── table_details_4.html
│ │ ├── table_details_5.html
│ │ ├── table_details_6.html
│ │ ├── table_details_7.html
│ │ ├── table_details_8.html
│ │ ├── table_details_9.html
│ │ ├── tables.html
│ │ ├── table_summary.html
│ │ ├── view_0.html
│ │ ├── view_10.html
│ │ ├── view_11.html
│ │ ├── view_12.html
│ │ ├── view_13.html
│ │ ├── view_14.html
│ │ ├── view_15.html
│ │ ├── view_1.html
│ │ ├── view_2.html
│ │ ├── view_3.html
│ │ ├── view_4.html
│ │ ├── view_5.html
│ │ ├── view_6.html
│ │ ├── view_7.html
│ │ ├── view_8.html
│ │ ├── view_9.html
│ │ ├── view_details_0.html
│ │ ├── view_details_10.html
│ │ ├── view_details_11.html
│ │ ├── view_details_12.html
│ │ ├── view_details_13.html
│ │ ├── view_details_14.html
│ │ ├── view_details_15.html
│ │ ├── view_details_1.html
│ │ ├── view_details_2.html
│ │ ├── view_details_3.html
│ │ ├── view_details_4.html
│ │ ├── view_details_5.html
│ │ ├── view_details_6.html
│ │ ├── view_details_7.html
│ │ ├── view_details_8.html
│ │ ├── view_details_9.html
│ │ ├── views.html
│ │ └── view_summary.html
│ ├── README.txt
│ ├── sproc_details.cst
│ ├── sprocs.cst
│ ├── sproc_summary.cst
│ ├── sproc_text.cst
│ ├── table_details.cst
│ ├── tables.cst
│ ├── table_summary.cst
│ ├── view_details.cst
│ ├── views.cst
│ ├── view_summary.cst
│ └── view_text.cst
├── DocumentForCodeSmith
│ └── 中文乱码问题.txt
├── EXT
│ ├── Data
│ │ ├── CommonPage.aspx.cst
│ │ ├── Delete.aspx.cs.cst
│ │ ├── EditByField.aspx.cs.cst
│ │ ├── GetData.aspx.cs.cst
│ │ └── Save.aspx.cs.cst
│ ├── JS
│ │ └── JSTemplate.cst
│ └── MenuItems
│ ├── AutoEventJSTemplate.cst
│ ├── IncludingJSFileTemplate.cst
│ └── MenuItemTemplate.cst
├── sqlnet.log
├── StoredProcedures
│ ├── AllStoredProcedures.cst
│ ├── StoredProcedureDescriptions.cst
│ └── StoredProcedures.cst
├── Util
│ ├── CommonSqlCode.cs
│ ├── Utility.cs
│ └── UtilityForCommon.cs
└── VisualStudio
├── App.config.2005.cst
├── AssemblyInfo.cst
├── entlib.v2.config.cst
├── entlib.v3_1.config.cst
├── entlib.v3.config.cst
├── entlib.v4_1.config.cst
├── entlib.v4.config.cst
├── nant.cst
├── reportHTML.xsl
├── vsnet2005.localtestrun.testrunconfig.cst
├── vsnet2005.project.cst
├── vsnet2005.solution.cst
└── vsnet2005.vsmdi.cst
13 directories, 133 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论