Exemple #1
0
        //Construtor da classe
        public PReserva()
        {
            cnnReserva     = ConexaoSingleton.getInstancia();
            cmd.Connection = cnnReserva.conexaoMysql();

            //cnn.ConnectionString = Persistencia.Conexao.Caminho;
            //cmd.Connection = cnn;
        }
Exemple #2
0
        //Construtor da classe
        public PCampo()
        {
            // pega a instacia de conexao com o banco
            cnnCampo = ConexaoSingleton.getInstancia();

            // executa a conexao com o banco de dados
            cmd.Connection = cnnCampo.conexaoMysql();

            //cnn.ConnectionString = Persistencia.Conexao.Caminho;
            //cmd.Connection = cnn;
        }