特点 - NHibernate的与编写自定义对象关系映射器自定义、对象、特点、关系

2023-09-04 03:20:51 作者:流年_把记忆搬成空房间

我在找的你将有一个自定义的对象关系映射(ORM),以满足NHibernate的所有功能实现的功能列表。

I'm looking for a list of all the features you would have implement in a custom object relational mapper (ORM) to meet all the features of NHibernate.

启动:

在数据库可移植性,通过不同的驱动程序和方言 缓存 延迟加载 在自定义的SQL 在查询界面 - LINQ,标准,QBE(按实例查询) 基本和高级映射功能(例如鉴别列的例子的) 支持事务和工作单元 多条件 多查询 配料 钩来补充/覆盖功能 database portability through different drivers and dialects caching lazy loading custom SQL query interface - LINQ, Criteria, QBE (Query By Example) basic and advanced mapping functionality (ex. discriminator columns, examples) support for transactions and unit of work Multi-Criteria Multi-Query Batching Hooks to supplement/override functionality

<插入你这里>

<Insert yours Here>

请参阅另一份清单在这里: 25理由不写自己的对象关系映射器从Ayende Rahien

See another list here: 25 Reasons Not To Write Your Own Object Relational Mapper from Ayende Rahien

推荐答案

Ayende发表重要ORM近乎完整的列表功能在这里: http://ayende.com/Blog/archive/2006/05/12/25ReasonsNotToWriteYourOwnObjectRelationalMapper.aspx

Ayende published a near complete list of important ORM features here: http://ayende.com/Blog/archive/2006/05/12/25ReasonsNotToWriteYourOwnObjectRelationalMapper.aspx

这是重要的一个是从你的列表中缺少的是IsDirty /状态变化检查。标识映射是另一种重要的使了很多其他的功能,如IsDirty。

An important one that is missing from your list is IsDirty/State Change checking. Identity Map is another important one which enables a lot of the other features such as IsDirty.