NHibernate.MappingException: No persister for: XYZ

后端 未结 16 1088
天命终不由人
天命终不由人 2020-12-01 03:24

Now, before you say it: I did Google and my hbm.xml file is an Embedded Resource.

Here is the code I am calling:

16条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-01 03:51

    Should it be name="Id"? Typos are a likely cause.

    Next would be to try it out with a non-generic test to make sure you're passing in the proper type parameter.

    Can you post the entire error message?

提交回复
热议问题