NHibernate solves a problem

xiaoxiao2021-03-06  22

Always prompted that addassembly is not available. . Finally, there is no way, change a method, it is OK.

such

Cfg.addresource ("NHibernate.examples.vb.user.hbm.xml", System.Reflection.Assembly.GetexecutingAssembly)

Use AddResource

but. I also checked some about use

This embedded information resources under much more convenient Public Function GetEmbeddedResource (ByVal strname As String) As System.IO.Stream Return System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream (strname) End Function

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

New Post(0)