NHibernate.MappingException: No persister for: XYZ

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

    Don't forget to specify mapping information in .config file

    e.g.

    where MyApp.Data is assembly that contains your mappings

提交回复
热议问题