NHibernate.MappingException: No persister for: XYZ

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

    I had similar problem, and I solved it as folows:

    I working on MS SQL 2008, but in the NH configuration I had bad dialect: NHibernate.Dialect.MsSql2005Dialect if I correct it to: NHibernate.Dialect.MsSql2008Dialect then everything's working fine without a exception "No persister for: ..." David.

提交回复
热议问题