Nhibernate错误:找不到具有给定标识符的行错误 [英] Nhibernate error: NO row with given identifier found error
本文介绍了Nhibernate错误:找不到具有给定标识符的行错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道这个问题是重复的. 但是没有人能够回答得足够短以正确回答. 当我尝试使用GUID给我表中的记录时,我收到Nhibernate错误未找到给定identiifer的行". 我正在使用Nhibernate加载功能来加载具有唯一标识符(GUID)的记录,但是如果该记录不存在,则会给出异常. 我是否在hbm.xml文件中缺少某些属性?
I know that this question is repeated one. But no one could answer briefly enough to answer corrctly. I am getting Nhibernate error " No row with given identiifer found error" when im trying to use the guid to give me the record from the table. I am using Nhibernate load function to load the record with the unique identifier(GUID) but if the record is not there it is giving exception. Am I missing some property in hbm.xml file?
推荐答案
查看全文