Fixed logic to display a menu of databases when {MENU} is the Initial Catalog in DBConnection.xml file

This commit is contained in:
John Jenko 2014-01-09 17:04:31 +00:00
parent 1aa10bf9cd
commit 15e744eb2c

View File

@ -92,7 +92,8 @@ namespace VEPROMS.CSLA.Library
// otherwise use the connection string as it is in the DBConnection.xml
if (xn != null)
{
if (xn.InnerText.Contains("{MENU}") && SelectedDatabase != null && SelectedDatabase.Length > 0)
//if (xn.InnerText.Contains("{MENU}") && SelectedDatabase != null && SelectedDatabase.Length > 0)
if (xn.InnerText.Contains("{MENU}"))
_VEPROMS_Connection = ChooseDatabase(xn.InnerText);
else
_VEPROMS_Connection = xn.InnerText;