<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_YJingLee's Blog_分类_NHibernate</title><id>http://feed.cnblogs.com/blog/u/23571/category/129155/rss</id><updated>2012-06-04T17:35:03Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/category/129155.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/23571/category/129155/rss"/><entry><id>http://www.cnblogs.com/lyj/archive/2011/04/10/inside-nh-mapping-by-code-apply.html</id><title type="text">NHibernate剖析：Mapping篇之Mapping-By-Code(2):运用ModelMapper</title><summary type="text">上一篇文章介绍了Mapping-By-Code(代码映射)的原理，这篇文章结合上篇的原理运用Mapping-By-Code(代码映射)。</summary><published>2011-04-10T08:33:00Z</published><updated>2011-04-10T08:33:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2011/04/10/inside-nh-mapping-by-code-apply.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2011/04/10/inside-nh-mapping-by-code-apply.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/lyj/archive/2011/04/10/inside-nh-mapping-by-code-introduction.html</id><title type="text">NHibernate剖析：Mapping篇之Mapping-By-Code(1):概览</title><summary type="text">NHibernate3.2版本集成Mapping-By-Code(代码映射)，其设计思想来源于ConfORM，代码整体构思基于"Loquacious"模式，而不是"fluent-interface"。在NHibernate.Mapping.ByCode命名空间下。</summary><published>2011-04-10T07:24:00Z</published><updated>2011-04-10T07:24:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2011/04/10/inside-nh-mapping-by-code-introduction.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2011/04/10/inside-nh-mapping-by-code-introduction.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/lyj/archive/2010/12/15/nhibernate3-new-feature.html</id><title type="text">NHibernate 3版本新特性</title><summary type="text">2010年12月4号Fabio Maulo发布了NHibernate 3.0.0.GA正式版本，基于.Net3.5和.NET 3.5 Client Profile平台，主要改变是增加Loquacious配置和基于Lambda表达式查询和Linq查询。</summary><published>2010-12-15T01:26:00Z</published><updated>2010-12-15T01:26:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2010/12/15/nhibernate3-new-feature.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2010/12/15/nhibernate3-new-feature.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/lyj/archive/2010/12/05/nhibernate-30-released.html</id><title type="text">NHibernate 3.0.0.GA正式发布了</title><summary type="text">2010年12月4号Fabio Maulo发布了NHibernate 3.0.0.GA正式版本。</summary><published>2010-12-05T04:47:00Z</published><updated>2010-12-05T04:47:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2010/12/05/nhibernate-30-released.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2010/12/05/nhibernate-30-released.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/lyj/archive/2010/10/11/nhibernate-3-0-cookbook.html</id><title type="text">推荐NHibernate新书：NHibernate 3.0 CookBook[附下载]</title><summary type="text">NHibernate 3.0 CookBook这本书在2010年10月4号出版，出版后NHibernate的Lead：Fabio Maulo赠送我一份免费优惠券，我花了几天时间阅读了这本电子书，以下是我阅读NHibernate 3.0 CookBook这本书的读书心得分享一下。</summary><published>2010-10-11T00:43:00Z</published><updated>2010-10-11T00:43:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2010/10/11/nhibernate-3-0-cookbook.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2010/10/11/nhibernate-3-0-cookbook.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/lyj/archive/2010/10/03/inside-nh3-conform-component.html</id><title type="text">NHibernate3剖析：Mapping篇之ConfORM实战(5):Component语义</title><summary type="text">使用ConfORM“映射”组件，我们无需特别设置，ConfORM内部会根据Domain定义来判定组件，一般而言，没有主键的类就是组件。</summary><published>2010-10-03T05:46:00Z</published><updated>2010-10-03T05:46:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2010/10/03/inside-nh3-conform-component.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2010/10/03/inside-nh3-conform-component.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/lyj/archive/2010/09/26/inside-nh3-conform-manytomany.html</id><title type="text">NHibernate3剖析：Mapping篇之ConfORM实战(4):ManyToMany语义</title><summary type="text">这篇我们使用ConfORM“映射”多对多关联。无论是单向关联还是双向关联，我们只需要使用ObjectRelationalMapper类中的ManyToMany方法。</summary><published>2010-09-26T13:03:00Z</published><updated>2010-09-26T13:03:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2010/09/26/inside-nh3-conform-manytomany.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2010/09/26/inside-nh3-conform-manytomany.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/lyj/archive/2010/09/10/inside-nh3-conform-onetoone.html</id><title type="text">NHibernate3剖析：Mapping篇之ConfORM实战(3):OneToOne语义</title><summary type="text">在Domain设计中，关联关系有单向关联和双向关联两种，那么一对一我们可以分为单向一对一关联(Unidirectional one-to-one)、双向一对一主键关联(Bidirectional one-to-one (primary key association))、双向一对一外键关联(Bidirectional one-to-one (foreign key association))三种情况。这篇使用ConfORM“映射”这些Domain实例吧。</summary><published>2010-09-10T00:45:00Z</published><updated>2010-09-10T00:45:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2010/09/10/inside-nh3-conform-onetoone.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2010/09/10/inside-nh3-conform-onetoone.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/lyj/archive/2010/09/09/inside-nh3-conform-theory.html</id><title type="text">NHibernate3剖析：Mapping篇之ConfORM实战(2):原理</title><summary type="text">在上一节中，我用一个简单的例子描述了ConfORM简单使用。留下了很多疑问，大家不解为何使用ConfORM以及怎么使用ConfORM，其内部原理是什么。这节，我们先注重了解一些ConfORM的原理。</summary><published>2010-09-09T00:55:00Z</published><updated>2010-09-09T00:55:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2010/09/09/inside-nh3-conform-theory.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2010/09/09/inside-nh3-conform-theory.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/lyj/archive/2010/08/11/inside-nh3-linq-extension-query.html</id><title type="text">NHibernate3剖析：Query篇之NHibernate.Linq自定义扩展</title><summary type="text">在NHibernate中，几乎所有的面向对象查询语言(HQL、Criteria、QueryOver)都是可扩展的，Linq也不例外。我们可以扩展自定义LINQ-provider并将LINQ扩展方法转换为SQL。</summary><published>2010-08-11T12:05:00Z</published><updated>2010-08-11T12:05:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2010/08/11/inside-nh3-linq-extension-query.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2010/08/11/inside-nh3-linq-extension-query.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/lyj/archive/2010/08/10/inside-nh3-linq-append-query.html</id><title type="text">NHibernate3剖析：Query篇之NHibernate.Linq增强查询</title><summary type="text">NHibernate.Linq除了提供标准查询运算符外，NHibernate.Linq还专门提供了NHibernate特有的两个增强查询方法，分别是立即抓取(EagerFetching)和查询缓存(QueryCacheable)。</summary><published>2010-08-10T01:38:00Z</published><updated>2010-08-10T01:38:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2010/08/10/inside-nh3-linq-append-query.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2010/08/10/inside-nh3-linq-append-query.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/lyj/archive/2010/08/09/inside-nh3-linq-basic-query.html</id><title type="text">NHibernate3剖析：Query篇之NHibernate.Linq标准查询</title><summary type="text">NHibernate.Linq基于HQL AST分析器的Linq Provider，使用ISession接口的Query()扩展方法创建一个NHibernate.Linq查询。这篇利用单一对象学习下NHibernate.Linq最基本的标准查询。</summary><published>2010-08-09T00:20:00Z</published><updated>2010-08-09T00:20:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2010/08/09/inside-nh3-linq-basic-query.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2010/08/09/inside-nh3-linq-basic-query.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/lyj/archive/2010/07/24/nh3-alpha-1-released.html</id><title type="text">NHibernate 3.0.0.Alpha1 发布及新特性介绍</title><summary type="text">刚刚NHibernate的Leader——Fabio Maulo发布了NHibernate 3.0.0.Alpha1版本，这是NHibernate 3.0.0的第一个公开测试版本。NHibernate 3.0.0版本可以说是跨时代的一个版本，NHibernate贡献者们经过了一年的完善和测试，增加了非常多的新特性和修复很多BUG。这篇文章我也自己归类总结了这些新特性。</summary><published>2010-07-24T13:12:00Z</published><updated>2010-07-24T13:12:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2010/07/24/nh3-alpha-1-released.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2010/07/24/nh3-alpha-1-released.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/lyj/archive/2010/05/12/inside-nh3-mapping-map.html</id><title type="text">NHibernate3剖析：Mapping篇之集合映射基础(4):Map映射</title><summary type="text">我们在设计Domain时，有很多集合形式，我总是设计着各种各样的Domain不断尝试着各种集合形式。集合有所有Net基本类型、NHibernate自定义类型、组件、其他实体的引用等形式，那么在NHibernate中如何通过映射把Domain定义中的集合形式和数据库架构映射起来的呢。Mapping篇为大家介绍基本上所有的Mapping方式，大家学习NHibernate也有个比较"官方"的参考。</summary><published>2010-05-12T13:56:00Z</published><updated>2010-05-12T13:56:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2010/05/12/inside-nh3-mapping-map.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2010/05/12/inside-nh3-mapping-map.html"/><content type="text">我们在设计Domain时，有很多集合形式，我总是设计着各种各样的Domain不断尝试着各种集合形式。集合有所有Net基本类型、NHibernate自定义类型、组件、其他实体的引用等形式，那么在NHibernate中如何通过映射把Domain定义中的集合形式和数据库架构映射起来的呢。Mapping篇为大家介绍基本上所有的Mapping方式，大家学习NHibernate也有个比较"官方"的参考。</content></entry><entry><id>http://www.cnblogs.com/lyj/archive/2010/05/12/inside-nh3-mapping-list.html</id><title type="text">NHibernate3剖析：Mapping篇之集合映射基础(3):List映射</title><summary type="text">我们在设计Domain时，有很多集合形式，我总是设计着各种各样的Domain不断尝试着各种集合形式。集合有所有Net基本类型、NHibernate自定义类型、组件、其他实体的引用等形式，那么在NHibernate中如何通过映射把Domain定义中的集合形式和数据库架构映射起来的呢。Mapping篇为大家介绍基本上所有的Mapping方式，大家学习NHibernate也有个比较"官方"的参考。</summary><published>2010-05-12T02:33:00Z</published><updated>2010-05-12T02:33:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2010/05/12/inside-nh3-mapping-list.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2010/05/12/inside-nh3-mapping-list.html"/><content type="text">我们在设计Domain时，有很多集合形式，我总是设计着各种各样的Domain不断尝试着各种集合形式。集合有所有Net基本类型、NHibernate自定义类型、组件、其他实体的引用等形式，那么在NHibernate中如何通过映射把Domain定义中的集合形式和数据库架构映射起来的呢。Mapping篇为大家介绍基本上所有的Mapping方式，大家学习NHibernate也有个比较"官方"的参考。</content></entry><entry><id>http://www.cnblogs.com/lyj/archive/2010/05/10/inside-nh3-mapping-bag.html</id><title type="text">NHibernate3剖析：Mapping篇之集合映射基础(2):Bag映射</title><summary type="text">我们在设计Domain时，有很多集合形式，我总是设计着各种各样的Domain不断尝试着各种集合形式。集合有所有Net基本类型、NHibernate自定义类型、组件、其他实体的引用等形式，那么在NHibernate中如何通过映射把Domain定义中的集合形式和数据库架构映射起来的呢。Mapping篇为大家介绍基本上所有的Mapping方式，大家学习NHibernate也有个比较"官方"的参考。</summary><published>2010-05-10T13:33:00Z</published><updated>2010-05-10T13:33:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2010/05/10/inside-nh3-mapping-bag.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2010/05/10/inside-nh3-mapping-bag.html"/><content type="text">我们在设计Domain时，有很多集合形式，我总是设计着各种各样的Domain不断尝试着各种集合形式。集合有所有Net基本类型、NHibernate自定义类型、组件、其他实体的引用等形式，那么在NHibernate中如何通过映射把Domain定义中的集合形式和数据库架构映射起来的呢。Mapping篇为大家介绍基本上所有的Mapping方式，大家学习NHibernate也有个比较"官方"的参考。</content></entry><entry><id>http://www.cnblogs.com/lyj/archive/2010/05/08/inside-nh3-mapping-set.html</id><title type="text">NHibernate3剖析：Mapping篇之集合映射基础(1):Set映射</title><summary type="text">我们在设计Domain时，有很多集合形式，我总是设计着各种各样的Domain不断尝试着各种集合形式。集合有所有Net基本类型、NHibernate自定义类型、组件、其他实体的引用等形式，那么在NHibernate中如何通过映射把Domain定义中的集合形式和数据库架构映射起来的呢。Mapping篇为大家介绍基本上所有的Mapping方式，大家学习NHibernate也有个比较"官方"的参考。</summary><published>2010-05-08T12:48:00Z</published><updated>2010-05-08T12:48:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2010/05/08/inside-nh3-mapping-set.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2010/05/08/inside-nh3-mapping-set.html"/><content type="text">我们在设计Domain时，有很多集合形式，我总是设计着各种各样的Domain不断尝试着各种集合形式。集合有所有Net基本类型、NHibernate自定义类型、组件、其他实体的引用等形式，那么在NHibernate中如何通过映射把Domain定义中的集合形式和数据库架构映射起来的呢。Mapping篇为大家介绍基本上所有的Mapping方式，大家学习NHibernate也有个比较"官方"的参考。</content></entry><entry><id>http://www.cnblogs.com/lyj/archive/2010/04/22/inside-nh3-mapping-introduction.html</id><title type="text">NHibernate3剖析：Mapping篇之Mapping概览</title><summary type="text">NHibernate作为典型的ORM工具，我们使用时通常是先定义Domain，再为Domain映射数据库关系，NHibernate映射是使用XML文件形式的。本篇从整体上了解下NHibernate Mapping处理过程及我们编写方式。</summary><published>2010-04-22T11:36:00Z</published><updated>2010-04-22T11:36:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2010/04/22/inside-nh3-mapping-introduction.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2010/04/22/inside-nh3-mapping-introduction.html"/><content type="text">NHibernate作为典型的ORM工具，我们使用时通常是先定义Domain，再为Domain映射数据库关系，NHibernate映射是使用XML文件形式的。本篇从整体上了解下NHibernate Mapping处理过程及我们编写方式。</content></entry><entry><id>http://www.cnblogs.com/lyj/archive/2010/04/21/inside-nh3-conform-introduction.html</id><title type="text">NHibernate3剖析：Mapping篇之ConfORM实战(1):概览</title><summary type="text">对于ORM(Object Relational Mapping)我们太熟悉了，但是我们从另一个角度可以想象出ORuM(Object Relational un-Mapping)的思想理念。我们在程序中仅仅定义Domain， 而想有个工具可以帮助我们"自动化"实现Mapping，我们无需按传统的ORM思想那样为Domain手动编码Mapping。ConfORM设计思想来源就是 ORuM(Object Relational un-Mapping)。这个系列一起学习下ConfORM。</summary><published>2010-04-21T13:37:00Z</published><updated>2010-04-21T13:37:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2010/04/21/inside-nh3-conform-introduction.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2010/04/21/inside-nh3-conform-introduction.html"/><content type="text">对于ORM(Object Relational Mapping)我们太熟悉了，但是我们从另一个角度可以想象出ORuM(Object Relational un-Mapping)的思想理念。我们在程序中仅仅定义Domain， 而想有个工具可以帮助我们"自动化"实现Mapping，我们无需按传统的ORM思想那样为Domain手动编码Mapping。ConfORM设计思想来源就是 ORuM(Object Relational un-Mapping)。这个系列一起学习下ConfORM。</content></entry><entry><id>http://www.cnblogs.com/lyj/archive/2010/01/22/inside-nh3-cache-lambda-configuration.html</id><title type="text">NHibernate3剖析：Configuration篇之Cache lambda-configuration配置</title><summary type="text">在上一篇文章中我们介绍了lambda表达式配置(lambda-configuration)，其中还剩下EntityCache扩展方法用于配置Domain的二级缓存。本文介绍了使用Weak Type和EntityCache扩展方法两种方式配置实体缓存。</summary><published>2010-01-22T02:44:00Z</published><updated>2010-01-22T02:44:00Z</updated><author><name>李永京</name><uri>http://www.cnblogs.com/lyj/</uri></author><link rel="alternate" href="http://www.cnblogs.com/lyj/archive/2010/01/22/inside-nh3-cache-lambda-configuration.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/lyj/archive/2010/01/22/inside-nh3-cache-lambda-configuration.html"/><content type="text">在上一篇文章中我们介绍了lambda表达式配置(lambda-configuration)，其中还剩下EntityCache扩展方法用于配置Domain的二级缓存。本文介绍了使用Weak Type和EntityCache扩展方法两种方式配置实体缓存。</content></entry></feed>
