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

            //cnn.ConnectionString = Persistencia.Conexao.Caminho;
            //cmd.Connection = cnn;
        }
示例#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;
        }