Ejemplo n.º 1
0
        public Configuracoes iserirConexao()
        {
            AppSettingsSection appSetSec = configFile.AppSettings;
              configuracoesControler configControl = new configuracoesControler();
              Configuracoes config = new Configuracoes();

              config = configControl.CarregaServidor(config);
              //config = configControl.CarregaBanco(config);

              config.Servidor = appSetSec.Settings["servidor"].Value;
              config.Database = appSetSec.Settings["database"].Value;
              config.User = appSetSec.Settings["user"].Value;
              config.Senha = appSetSec.Settings["senha"].Value;
              config.ConectionString = appSetSec.Settings["connectionString"].Value;

              return config;
        }