Hi all,
I've come to nHibernate from my experience with Hibernate in the Java side, but a problem has just arised at the begining.
I currently use Visual Web Developer to make an application and I have no way to set the build action for the mapping file to Embedded Resource. I have read I can work around it by adding the xml directly:
Code:
NHibernate.Cfg.Configuration cfg = new NHibernate.Cfg.Configuration();
cfg.AddXmlFile(physicalPath + "client.hbm.xml");
With this code, I get this error:
Could not load type 'NHibernateFirst.Core.Domain.Client, NHibernate, Version=1.0.2.0, Culture=neutral, PublicKeyToken=154fdcb44c4484fc', check that type and assembly names are correct
I suposse nHibernate tries to locate client class into an assembly called NHibernate (the default?). So my question is if there is any way to solve it in VWD, or how to make an assembly containing the mapping and domain classes files.
Thanks very much