Hi, I've defined two hibernate-configuration, one in my web.config and one in hibernate.cfg.xml.
The one in hibernate.cfg.xml is used to create a SessionFactory in the ApplicationStartup event. It's the one I use throughout my application and everyting's fine. I've started to use the ASP.net membership provider for NHibernate (http://www.manuelabadia.com/blog/CommentView,guid,3B6CCB3F-2F2A-4DCB- A414-605371A00618.aspx) which uses its own SessionFactory and it has to be defined in the web.config file. However since I added it to my web.config file, when I create my SessionFactory in ApplicationStartup, it picks up the one in web.config. So is there a way to specify which SessionFactory to use when I call cfg.BuildSessionFactory(); ? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
