NHibernate.MappingException: No persister for: XYZ

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

    Make sure you have called the CreateCriteria(typeof(DomainObjectType)) method on Session for the domain object which you intent to fetch from DB.

提交回复
热议问题