作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2009, Vol. 35 ›› Issue (20): 53-55. doi: 10.3969/j.issn.1000-3428.2009.20.018

• 软件技术与数据库 • 上一篇    下一篇

基于NHibernate的数据持久化方案

赵广利   

  1. (大连海事大学信息科学技术学院,大连 116026)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-10-20 发布日期:2009-10-20

Data Persistent Scheme Based on NHibernate

ZHAO Guang-li   

  1. (Information Science and Technology College, Dalian Maritime University, Dalian 116026)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-10-20 Published:2009-10-20

摘要:

分析目前广泛使用的对象关系映射(ORM)组件——NHibernate,针对NHibernate的不足提出改进的ORM模型,根据该模型设计并实现基于.NET平台的轻量级ORM组件——MYPL,利用该组件无须编写任何映射文件即可实现对象关系映射等数据持久化操作,并能降低业务层和数据层之间的耦合,提高系统的扩展性、可维护性和应用系统的开发效率。

关键词: 持久化, 对象关系映射, 阻抗不匹配

Abstract: This paper analyzes the Object Relational Mapping(ORM) component——NHibernate that use extensively currently. Aiming at the shortage of NHibernate, it puts forward improved ORM model, designs and realizes a lightweight ORM component——MYPL based on .NET platform according to this model. It makes use of the component does not need to be write any mapping document to realize data lasting operations such as object relations mapping and so on, and reduces between the service level and the data level coupling enormously, enhances the system’s extendibility, maintainability and the application system development efficiency.

Key words: persistence, Object Relational Mapping(ORM), impedance mismatch

中图分类号: