NHibernate 错误
生活随笔
收集整理的這篇文章主要介紹了
NHibernate 错误
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
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
第二 ?設(shè)置xml文件為嵌入的資源,用鼠標(biāo)點(diǎn)擊右鍵 然后生成操作里 選擇嵌入的資源即可解決。
文件命名沒(méi)有問(wèn)題,我把兩個(gè)XML文件都改成了嵌入的資源
?
Could not interpret id generator strategy: GuidNative
GuidNative 改成 native
轉(zhuǎn)載于:https://www.cnblogs.com/wuxl360/p/5865381.html
《新程序員》:云原生和全面數(shù)字化實(shí)踐50位技術(shù)專(zhuān)家共同創(chuàng)作,文字、視頻、音頻交互閱讀總結(jié)
以上是生活随笔為你收集整理的NHibernate 错误的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 为什么对象字面量没有名字?
- 下一篇: 轻量级ORM