NHibernate.MappingException: No persister for: XYZ

后端 未结 16 1062
天命终不由人
天命终不由人 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:54

    Had a similar problem when find an object by id... All i did was to use the fully qualified name in the class name. That is Before it was :

    find("Class",id)
    

    Object so it became like this :

    find("assemblyName.Class",id)
    

提交回复
热议问题