using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Web; using Tango.BL; using Tango.Core; namespace Tango.Web.Helpers { public static class ObservablesWebContext { public static ObservablesContext CreateContext(String catalog = null) { return new ObservablesContext(new DataSource() { Address = WebConfig.DB_ADDRESS, Catalog = catalog != null ? catalog : WebConfig.DB_CATALOG, IntegratedSecurity = false, Type = DataSourceType.SQLServer, UserName = WebConfig.DB_USER_NAME, Password = WebConfig.DB_PASSWORD }); } } }