Nhibernate出现NHibernate.QueryException: could not resolve property异常

Nhibernate出现NHibernate.QueryException: could not resolve property异常

nhibernate 使用hql语言进行查询操作,其执行的查询是对象的相关信息,而在nhibernate中,对象的属性是由.hb.xml来定义,故其查询的属性需与hb.xml文件定义字段相一致,包括大小写,如,Isession.CreateQuery(“select c.cusID  from customer c"),其cusID需与hb.xml中定义的一致。

posted @ 2010-03-08 15:43  木头人 !  阅读(1637)  评论(0编辑  收藏  举报