J4 ›› 2010, Vol. 28 ›› Issue (02): 198-.

• 论文 • 上一篇    下一篇

基于设计模式的NET通用数据访问层研究

金 迪| 陈晓玲| 林和平   

  1. 东北师范大学 计算机学院|长春 130117
  • 出版日期:2010-03-25 发布日期:2010-06-10
  • 通讯作者: 金迪(1984— ),男,长春人,东北师范大学硕士研究生,主要从事计算机软件工程研究,(Tel)86-15889757330 E-mail:Disa16@163.com
  • 作者简介:金迪(1984— )|男|长春人|东北师范大学硕士研究生|主要从事计算机软件工程研究|(Tel)86-15889757330(E-mail)Disa16@163.com;林和平(1956— )|男|长春人|东北师范大学教授|硕士生导师|主要从事人工智能、计算机图形学、计算机工程研究|(Tel)86-431-84536876(E-mail)lhp@163.com。

Research of NET General Data Access Layer Based on Design Pattern

JIN |Di| CHEN Xiao-ling| LIN He-ping   

  1. College of Computer Science, Northeast Normal University, Changchun 130117,China
  • Online:2010-03-25 Published:2010-06-10

摘要:

为提高数据访问层的灵活性,避免重量级服务带来的问题,运用工厂模式和单例模式,采用ADONET(ADO:ActiveX Data Object)技术,构建NET平台下的通用数据访问层,并给出核心代码。通过此项技术的研究和实现,可以减少系统服务器的负荷,使数据访问层的设计更加灵活,从而提高系统的可移植性和可扩展性。在教务管理系统中的实际应用表明,基于设计模式的通用数据访问层有效地提升了系统的稳定性,充分利用了服务器的资源,提高了用户的满意度,为以后的程序开发提供了理论根据。

关键词: 设计模式, 数据库连接, 数据访问层

Abstract:

For enhancing flexibility of data access to resolve heavyweight server problems, using factory patterns,the singleton patterns are applied to design NET platform general database access layer with ADONET (ADO:ActiveX Data Object) technology, and the core code are given. The technology of design patterns to the project design can reduce the load on the system server, and makes the data access layer more flexible, and improves system of portability and scalability. In the education management system application, data access based on design patterns improves the stability of system, uses server resources, increases user satisfaction, and is theoretical basis for the future program development.

Key words: design patterns, activeX data object .NET, data access layer

中图分类号: 

  • TP311.52