NHibernate is a small project (three)

xiaoxiao2021-03-06  41

Hahaha, I finally know where it is wrong. It turns out that I didn't change the properties of the XML file to "embedded resources", and change the attributes of the two mapping files to "embedded resources" in recompilation, use my beloved NUNIT to test, see the green, which is cool, if someone also encounters the same problem like me

Guestbook.test.daltest.user.addddaluser: NHibernate.Mappingexception: Resource: guestbook.guestbook.data.hbm.users.hbm.xml Not found

Remember, change the properties of the XML file to embedded resources

Figure

转载请注明原文地址:https://www.9cbs.com/read-68746.html

New Post(0)