【实例简介】
可以连接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