一种数据库访问代码自动生成方法  被引量:2

An automatic generation method of database access code

在线阅读下载全文

作  者:熊伟[1] 欧阳逸 张凌云 XIONG Wei;OUYANG Yi;ZHANG Ling-yun(School of Computer Science and Cyber Engineering, Guangzhou University, Guangzhou 510006, China)

机构地区:[1]广州大学计算机科学与网络工程学院

出  处:《广州大学学报(自然科学版)》2019年第3期93-95,共3页Journal of Guangzhou University:Natural Science Edition

基  金:大学生创新创业训练计划资助项目(201711078090)

摘  要:使用ORM框架访问数据库效率较低,对执行效率有要求的项目一般采用纯手工编写数据库访问代码,但纯手工编写重复的数据库访问代码需要耗费大量时间.文章提出一种数据库访问代码自动生成方法,指出了自动生成代码需要解决的三个关键问题,并以SQLServer数据库为例,描述了生成C#代码的过程.使用数据库访问代码自动生成方法,生成的代码规范、易于维护,节省了程序员编码时间,提高了开发效率.Accessing the database using ORM framework is inefficient. Projects that require performance efficiency generally use hand-written database access code, but it takes a lot of time to manually write duplicate database access code. This paper proposes a database access code generation method, pointing out three key problems that need to be solved in this code generation method, and takes SQL Server database as an example to describe the process of generating C# code. Code generated by this database access code generation method is regular, easy to maintain, and it saves programmers coding time and improves development efficiency.

关 键 词:数据库 数据访问层 ORM框架 

分 类 号:TP392[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象