摘要
为提高数据库应用程序的设计效率,基于VS.NET开发平台,利用ADO.NET的强大数据访问功能,设计了抽象的数据访问基类。主要通过代码的方式阐述了整个基类的创建过程,并重点介绍了创建存储过程参数的操作方法,在调用存储过程中,通过方法重载实现不同的数据库操作。利用该类并结合存储过程的优势构造数据服务层,统一整个系统的数据操作入口,提高开发效率,便于系统的升级、维护和移植。
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.
出处
《计算机技术与发展》
2008年第3期148-150,168,共4页
Computer Technology and Development
基金
广东省高校现代教育技术"151工程"项目(GDB045)