Ras_Nas wrote:
Dim vaxSessionFactory As NHibernate.ISessionFactory = _
New Cfg.Configuration().Configure("vax.cfg.xml") _
.AddAssembly("Vax-MT-Sema") _
.BuildSessionFactory()
Where did you put your vax.cfg.xml file. I am trying to do this, and it can't seem to find my file, which I named hibernate.cfg.xml.
Ras_Nas wrote:
"Secondly, Do I need the 'mapping' element in the XML file when I have the AddAssembly() call to the Configuration?"
Since it got things to work, I guess so.
I would expect not. Did you try it without that?
BOb