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
轉載于:https://www.cnblogs.com/wuxl360/p/5865381.html
《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀總結
以上是生活随笔為你收集整理的NHibernate 错误的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 为什么对象字面量没有名字?
- 下一篇: 轻量级ORM