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中定义的一致。

相关文章:

  • 2021-12-02
  • 2021-08-19
  • 2022-12-23
  • 2021-06-29
  • 2022-02-21
  • 2021-12-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-09
  • 2021-06-23
  • 2021-05-19
相关资源
相似解决方案