![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
NHibernate
中辽普坦
知福、惜福!活在当下,幸福当下(Share my knowledge with the world.)
展开
-
关于NHibernate异常The following types may not be used as proxies
对于Nhibernate刚入门的新手来说,这种错误是经常会遇到的。异常:The following types may not be used as proxies:NHibernateDemo.DataAccess.DomainObjects.Customer: method get_Name should be virtualNHibernateDemo.DataAccess.原创 2010-11-13 18:21:00 · 1094 阅读 · 0 评论 -
使用 Iesi.Collections.dll
由于.NET框架本身没有提供集合运算功能,在使用这方面的功能时,我们可以借助第三方的类库来实现( 现在有了Linq,那就方便多了)。在NHibernate 框架中有个Iesi.Collection.dll,这个类库提供了集合运算功能,并且支持泛型。功能: 主要是取得2个集合里,相同、相异、联集的部份。例子:using System;using System.Data;using原创 2012-03-20 14:57:41 · 13977 阅读 · 0 评论 -
NHibernate
NHibernate是.NET对象持久化的一种技术。在如今的企业级应用开发环境中,面向对象的开发方法已经成为主流。众所周知,对象只能存在于内存中,而内存不能永远保存数据。如果要永远保存对象的状态,需要进行对象的持久化,即把对象存储到专门的数据库中。目前,关系数据库仍然是使用最广泛的数据存储库。关系数据库中存放的是关系数据,它是非面向对象的。 对象和关系数据其实是业务实体的两种表现形原创 2010-11-14 11:11:00 · 646 阅读 · 0 评论 -
NHibernate常见问题
1、An association from the table refers to an unmapped class在学习hibernate的时候,碰到一个"An association from the table ## refers to an unmapped class:##"第一个##代表表明,第二个是类名 。 按字面意思去解释:一个表找不到对应的映射类。例如(tabl原创 2012-03-30 09:26:00 · 1108 阅读 · 0 评论