PDA

View Full Version : ASP.NET, Spring, NHibernate



whytwelve13
09-25-2006, 03:00 PM
Somewhere on the Internet I found a way to include hbm.xml files. However, this works by using MappingAssemblies list in the configuration, which precludes that hbms are embedded resources. Is this right? If so, how can I do this in Web app (I couldn't embed the resource)? Any way you can use what normal NHibernate configuration allows, i.e. providing a list of hbms to use?

.ben
09-25-2006, 06:58 PM
You can apply the mapping files directly by using AddXmlFile(fileName) on the NHibernate.Cfg.Configuration.