首页 > Web开发 > 详细

NHibernate 错误

时间:2016-09-12 17:12:02      阅读:247      评论:0      收藏:0      [点我收藏+]

Unable to locate persister for the entity named ‘Model.Customer‘.
The persister define the persistence strategy for an entity.
Possible causes:
- The mapping for ‘Model.Customer‘ was not added to the NHibernate configuration.

 

第一 xml文件必须为 *.hbm.xml

第二  设置xml文件为嵌入的资源,用鼠标点击右键 然后生成操作里 选择嵌入的资源即可解决。

文件命名没有问题,我把两个XML文件都改成了嵌入的资源

 

Could not interpret id generator strategy: GuidNative

GuidNative 改成 native

NHibernate 错误

原文:http://www.cnblogs.com/wuxl360/p/5865381.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!