Beispiel #1
0
        //estou com pressa.


        public static string ObterStringConexao2()
        {
            //TODO: descomentar depois de terminar os testes
            string conn;

            conn = System.Configuration.ConfigurationManager.ConnectionStrings["DB_SW_ADONET"].ToString();
            conn = conn.Substring(conn.IndexOf("password="******"password="******"DB_SW_ADONET"].ToString();

            conexao = conexao.Replace(conexao.Substring(conexao.IndexOf("password="******"password=") + 9)), conn);

            return(conexao);
        }
Beispiel #2
0
        public static string ObterStringConexao()
        {
            string conn;

            conn = System.Configuration.ConfigurationManager.ConnectionStrings["DB_SW_GuildEntities"].ToString();
            //conn = conn.Substring(conn.IndexOf("password="******"password="******"password="******"DB_SW_GuildEntities"].ToString();

            //conexao = conexao.Replace(conexao.Substring(conexao.IndexOf("password="******"password="******"password=") + 9, 24), conn);

            return(conexao);
        }