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
时间: 2024-10-28 19:39:28