[1]刘于新 姚凯学 许道云.基于模板的.Net三层架构的代码自动生成[J].计算机技术与发展,2012,(08):13-16.
 LIU Yu-xin,YAO Kai-xue,XU Dao-yun.Automatic Code Generation Based on Template on. Net Framework of Three Layers Architecture[J].,2012,(08):13-16.
点击复制

基于模板的.Net三层架构的代码自动生成()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
期数:
2012年08期
页码:
13-16
栏目:
智能、算法、系统工程
出版日期:
1900-01-01

文章信息/Info

Title:
Automatic Code Generation Based on Template on. Net Framework of Three Layers Architecture
文章编号:
1673-629X(2012)08-0013-04
作者:
刘于新 姚凯学 许道云
贵州大学计算机科学与信息学院
Author(s):
LIU Yu-xin YAO Kai-xue XU Dao-yun
College of Computer Science and Information, Guizhou University
关键词:
自动代码生成三层架构可定制模板元数据内置模板
Keywords:
automatic code generation three layers architecture customizable template metadata built-in template
分类号:
TP311
文献标志码:
A
摘要:
三层架构是数据库开发中最常用的分层架构。三层结构能够提高代码重用率,降低项目开发难度。为了解决手工编写三层架构的代码工作量大且容易出错的问题,使用.Net平台提供的动态编译和反射技术,设计并实现了基于可定制模板的自动代码生成器。该代码生成器利用三层架构的代码依赖数据库的架构信息这一特点,以数据库架构信息、Xml配置文件和模板文件作为输入,输出三层架构的各层代码。用户可以修改Xml配置文件的内容和使用该代码生成器提供的模板语言定制、修改自己的模板文件,方便、灵活地控制输出的目标代码。代码生成器的使用在实际的项目开发中具有重要的意义
Abstract:
Three layers architecture is the most commonly used layered structure in database development. Three layers structure can improve code reuse rate and reduce the difficulty of project development. In order to solve the problem that manual programming code of three layers architecture is a big workload and easy to make mistake, using dynamic compile and reflecting technique provided by the. Net platform designs and realizes the automatic code generator that based on the customizable template. The code generator uses this feature that the code of three layers structure relies on the structure of the database information. Taking database schema information,Xml configuration flies and template files as input, the code generator produces the code of three layers architecture as output. Users can change the content of the Xml configuration files, and can customize, modify their own template files by using template language provided by the code generator,conveniently and flexibly controlling the output of the object code. In practical project development the use of code generator is of great significance

相似文献/References:

[1]张宇 王映辉.一种Web应用框架的研究与实现[J].计算机技术与发展,2009,(05):99.
 ZHANG Yu,WANG Ying-hui.Research and Implementation of Web Application Framework[J].,2009,(08):99.
[2]许辉 李心科.基于Pet Shop模式的纪检监察系统开发[J].计算机技术与发展,2006,(08):167.
 XU Hui,LI Xin-ke.Developing System of Discipline Supervise Based on Pet Shop[J].,2006,(08):167.
[3]高扬.基于.NET平台的三层架构软件框架的设计与实现[J].计算机技术与发展,2011,(02):77.
 GAO Yang.Design and Realization of Three Layers Structure Software Framework Based on.NET[J].,2011,(08):77.
[4]张荣 王培俊 曹永彦 李国良 侯磊.基于ASP.NET技术的实验中心信息化管理平台的设计[J].计算机技术与发展,2011,(05):235.
 ZHANG Rong,WANG Pei-jun,CAO Yong-yan,et al.Design of ASP. NET-Based Information Management System for Experiment Center[J].,2011,(08):235.
[5]刘方军 唐平 高长青.基于三层架构的中文学习平台设计[J].计算机技术与发展,2011,(11):163.
 LIU Fang-jun,TANG Ping,GAO Chang-qing.Design of Chinese Study Platform Based on Three-Tier Architecture[J].,2011,(08):163.
[6]王海燕.C#.NET下三层架构数据库应用系统开发[J].计算机技术与发展,2012,(06):78.
 WANG Hai-yan.Implementation of Database Application System Based on C#. NET Three-tier Architecture[J].,2012,(08):78.
[7]许洁,葛家宏,牛光辉,等.一种RBAC的改进方案在文件共享系统中的实现[J].计算机技术与发展,2013,(09):123.
 XU Jie[],GE Jia-hong[],NIU Guang-hui[],et al.Realization of Improved RBAC Model in File-sharing System[J].,2013,(08):123.
[8]史萌,蒋朝惠.基于. NET平台的网上营业厅系统设计[J].计算机技术与发展,2014,24(03):183.
 SHI Meng,JIANG Chao-hui.Design of Online Business Hall System Based on . NET Platform[J].,2014,24(08):183.
[9]王 冲,陈云云.物业管理平台的设计及在学生宿舍管理的实现[J].计算机技术与发展,2021,31(08):113.[doi:10. 3969 / j. issn. 1673-629X. 2021. 08. 019]
 WANG Chong,CHEN Yun-yun.Design of Property Management Platform and Realization of Management in Student Dormitory[J].,2021,31(08):113.[doi:10. 3969 / j. issn. 1673-629X. 2021. 08. 019]

备注/Memo

备注/Memo:
贵阳市2010年重大科技专项项目([2010]筑科工合同字第6-01号)刘于新(1983-),男,贵州安顺人,硕士研究生,主要研究领域为可计算性与计算复杂性;姚凯学,教授,硕士生导师,主要研究领域为计算机控制技术、嵌入式系统设计;许道云,教授,博士生导师,主要研究领域为计算复杂性、可计算分析
更新日期/Last Update: 1900-01-01