From 9cc18084e2f9db73ce9e2820dfebcab4e50e5730 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 5 May 2019 11:43:19 +0300 Subject: MREGE. --- Software/Visual_Studio/Tango.Web/Helpers/ObservablesContextHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Software/Visual_Studio/Tango.Web/Helpers') 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, -- cgit v1.3.1