diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-05-05 11:43:19 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-05-05 11:43:19 +0300 |
| commit | 9cc18084e2f9db73ce9e2820dfebcab4e50e5730 (patch) | |
| tree | 7e8751d6796a34599adf4fd90964ac62c0ee1cc7 /Software/Visual_Studio/Tango.Web/Helpers | |
| parent | eda6e4979dbb722ce5f9412955f89388dfa2af3f (diff) | |
| download | Tango-9cc18084e2f9db73ce9e2820dfebcab4e50e5730.tar.gz Tango-9cc18084e2f9db73ce9e2820dfebcab4e50e5730.zip | |
MREGE.
Diffstat (limited to 'Software/Visual_Studio/Tango.Web/Helpers')
| -rw-r--r-- | Software/Visual_Studio/Tango.Web/Helpers/ObservablesContextHelper.cs | 4 |
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, |
