Exemplo n.º 1
0
                /// <summary>
                ///
                /// </summary>
                /// <returns></returns>
                public static string GetConnectionStringDBUserLogServer()
                {
                    if (Development.GetIsEnabledDeveloperMode())
                    {
                        return(ConfigurationManager.ConnectionStrings["Development.MsSqlServer.UserLogServer"].ConnectionString);
                    }

                    if (GetUseLocalDB())
                    {
                        return(ConfigurationManager.ConnectionStrings["LocalDB.MsSqlServer.UserLogServer"].ConnectionString);
                    }

                    return(ConfigurationManager.ConnectionStrings["MsSqlServer.UserLogServer"].ConnectionString);
                }
Exemplo n.º 2
0
                /// <summary>
                /// retorna la cadena de conexion principal
                /// </summary>
                /// <returns></returns>
                public static string GetConnectionStringDBMain()
                {
                    if (Development.GetIsEnabledDeveloperMode())
                    {
                        return(ConfigurationManager.ConnectionStrings["MsSqlServer.Main.Development"].ConnectionString);
                    }

                    if (GetUseLocalDB())
                    {
                        return(ConfigurationManager.ConnectionStrings["LocalDB.MsSqlServer.Main"].ConnectionString);
                    }

                    if (Application.GetIsEnabledDemoMode())
                    {
                        return(ConfigurationManager.ConnectionStrings["Demo.LocalDB.MsSqlServer.Main"].ConnectionString);
                    }


                    return(ConfigurationManager.ConnectionStrings["MsSqlServer.Main"].ConnectionString);
                }