support bodine database server
This commit is contained in:
parent
ba9eddd1a1
commit
c0a822d4f7
@ -89,6 +89,8 @@
|
||||
<add name="VEPROMS_LOCAL" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=VEPROMS;Integrated Security=True" providerName="System.Data.SqlClient" />
|
||||
<add name="VEPROMS_RMARK_DEBUG" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=VEPROMS;Integrated Security=True" providerName="System.Data.SqlClient" />
|
||||
<add name="VEPROMS_RMARK_DEMO" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=VEPROMS;Integrated Security=True" providerName="System.Data.SqlClient" />
|
||||
<add name="VEPROMS_BODINE_DEBUG" connectionString="Data Source=JCB-HP;Initial Catalog=VEPROMS;Integrated Security=True" providerName="System.Data.SqlClient" />
|
||||
<add name="VEPROMS_BODINE_DEMO" connectionString="Data Source=JCB-HP;Initial Catalog=VEPROMS;Integrated Security=True" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<userSettings>
|
||||
<VEPROMS.Properties.Settings>
|
||||
|
@ -111,6 +111,8 @@ namespace VEPROMS
|
||||
//use local data (for development/debug mode)
|
||||
if (Environment.MachineName == "RMARK-PC")
|
||||
VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS_RMARK_DEBUG";
|
||||
else if (Environment.UserName == "BODINE")
|
||||
VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS_BODINE_DEBUG";
|
||||
else
|
||||
VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS_LOCAL";
|
||||
}
|
||||
@ -120,10 +122,8 @@ namespace VEPROMS
|
||||
// - except for the volian laptop and Rich's Demo version where we need to use local data
|
||||
if (Environment.MachineName == "RMARK-PC")
|
||||
VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS_RMARK_DEMO";
|
||||
//else if (Environment.MachineName == "DELL-D430")
|
||||
// VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS_LOCAL";
|
||||
//else
|
||||
// VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS";
|
||||
else if (Environment.UserName == "BODINE")
|
||||
VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS_BODINE_DEMO";
|
||||
else
|
||||
VEPROMS.CSLA.Library.Database.ConnectionName = "VEPROMS_LOCAL";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user