摘要
通过对ADO.Net数据访问机制的分析,结合Abstract Factory(抽象工厂)F、actory Method(工厂方法)2种设计模式,阐述了基于“.Net”的数据库访问接口的从分析、设计到实现的开发过程.通过该接口的使用,实现了数据库访问代码的复用,将大大提高应用系统在不同类型数据库间的可移植性.
Through the analysis of the mechanism of access database by ADO. Net and the combination with Abstract Factory, Factory Method, two kinds of Design Patterns, this paper expatiates on the development process of analysis, design and realization of the Database Access Interface based on . Net. With this interface, the refactoring of the code of database access is realized, which will greatly raise the portability of the application system in different kinds of databases.
出处
《重庆工学院学报》
2007年第11期93-97,共5页
Journal of Chongqing Institute of Technology
基金
重庆市教委科学技术研究项目(030601)