aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Web/Helpers/ObservablesContextHelper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.Web/Helpers/ObservablesContextHelper.cs')
-rw-r--r--Software/Visual_Studio/Tango.Web/Helpers/ObservablesContextHelper.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.Web/Helpers/ObservablesContextHelper.cs b/Software/Visual_Studio/Tango.Web/Helpers/ObservablesContextHelper.cs
index fcf6eb599..b0ef6b104 100644
--- a/Software/Visual_Studio/Tango.Web/Helpers/ObservablesContextHelper.cs
+++ b/Software/Visual_Studio/Tango.Web/Helpers/ObservablesContextHelper.cs
@@ -10,12 +10,12 @@ namespace Tango.Web.Helpers
{
public static class ObservablesContextHelper
{
- public static ObservablesContext CreateContext()
+ public static ObservablesContext CreateContext(String catalog = null)
{
return new ObservablesContext(new DataSource()
{
Address = WebConfig.DB_ADDRESS,
- Catalog = WebConfig.DB_CATALOG,
+ Catalog = catalog != null ? catalog : WebConfig.DB_CATALOG,
IntegratedSecurity = false,
Type = DataSourceType.SQLServer,
UserName = WebConfig.DB_USER_NAME,