基于面向对象的模型与基于关系数学理论之间的阻抗不匹配使得处理数据时无法完整体现对象的特性。对象关系映射提供了沟通对象与关系数据库的桥梁。分析比较了实体类映射到数据表时的策略,重点研究了NHibemate对象关系映射框架的应用与优势。
The impedance mismatch between paradigms based on object-oriented theory and relational theory make it impossible to reflect the characteristic of object. Object/Relational Mapping provides a bridge between them. The strategies of mapping entity classes to tables are analyzed and compared. The application and advantage of NHibernate framework are especially introduced.