休眠错误问题 [英] Hibernate error question

查看:85
本文介绍了休眠错误问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

保存数据时,点网中出现未知实体类:NHibernateDemo.Sample"错误.

"Unknown entity class: NHibernateDemo.Sample" error in dot net when saving data

推荐答案

好问题...
就像问我在这里有一些内容的文件.您如何看待,这是正确的内容吗?".
您可以检查以下一些项目:
1.检查是否已将映射文件添加到实体.
2.检查您的app.config中是否在映射部分右装配.
3.检查您的映射xml文件是否已编译为嵌入式资源.
4.查看NHibernate手册中的主题如何将类映射到数据表
Nice question...
It''s like to ask "I''ve here a file with some content. How do you think, is this right content or not?".
Here are some items you can check:
1. Check if you added mapping file to your entities.
2. Check if in your app.config you have in mapping section right assembly.
3. Check if your mapping xml files are compiled as embedded resource.
4. Check NHibernate manual for topic "how to map classes to datatables


这篇关于休眠错误问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆