Configure NHibernate hibernate.cfg.xml file to have more connection strings
问题 My client asked the posibility to switch from a c# app from the "CURRENT" database to a TEST database or DEV database. Only one can be active at a time. In a menu file she choose DEV or TEST database. How do I configure hibernate.cfg.xml file to have more connection strings like app.config. <name="CURRENT" connectionString='User Id=u1;Data Source=CURRENT;Password=...' /> <name="DEV" connectionString='User Id=u1;Data Source=DEV;Password=...' /> <name="TEST" connectionString='User Id=u1;Data