码迷,mamicode.com
首页 > Web开发 > 详细

NHibernate 错误

时间:2016-09-12 17:12:27      阅读:236      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!