首页 > 代码库 > NHibernate 错误
NHibernate 错误
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 错误
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。