首页 | 本学科首页   官方微博 | 高级检索  
     

基于.NET的数据访问基类的构建
引用本文:黄光芳. 基于.NET的数据访问基类的构建[J]. 微机发展, 2008, 18(3): 148-150
作者姓名:黄光芳
作者单位:黄光芳(湛江师范学院,广东,湛江,524048)
基金项目:广东省高校现代教育技术"151工程"项目(GDB045)
摘    要:为提高数据库应用程序的设计效率,基于VS.NET开发平台,利用ADO.NET的强大数据访问功能,设计了抽象的数据访问基类。主要通过代码的方式阐述了整个基类的创建过程,并重点介绍了创建存储过程参数的操作方法,在调用存储过程中,通过方法重载实现不同的数据库操作。利用该类并结合存储过程的优势构造数据服务层,统一整个系统的数据操作入口,提高开发效率,便于系统的升级、维护和移植。

关 键 词:ADO.NET  数据访问  基类  存储过程
文章编号:1673-629X(2008)03-0148-03
修稿时间:2007-06-19

Construction of Data Access Base Class Based on.NET
HUANG Guang-fang. Construction of Data Access Base Class Based on.NET[J]. Microcomputer Development, 2008, 18(3): 148-150
Authors:HUANG Guang-fang
Affiliation:HUANG Guang-fang (Zhanjiang Normal University, Zhanjiang 524048, China)
Abstract:For enhancing development efficiency of database application, an abstract data access base class was designed with ADO. NET that has strong capacity for data access based on VS. NET development platform. Explain the entire base class construction process by the code mainly, introduce the operating methods that create the stored procedure parameters and implement different database operation through the methods overloading in the course of transferring stored procedure. Utilize this base class and combine advantages of stored procedure to construct data server layer, unify the data operating entry of the whole system, improve the efficiency of development and make the upgrading, maintenance and transplanting of the system convenient.
Keywords:ADO: NET  data access  base class  stored procedure
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号