public QuestionarioOpcoesType select(QuestionarioType questionario)
        {
            MySqlConnection con = new MySqlConnection(Dados.StringConexao);
            string          SQL = "SELECT * FROM opcao_questionario " +
                                  "WHERE id_questionario = @id";
            MySqlCommand cmd = new MySqlCommand(SQL, con);

            cmd.Parameters.AddWithValue("@id", questionario.idQuestionario);
            con.Open();
            MySqlDataReader dr = cmd.ExecuteReader(CommandBehavior.CloseConnection);

            QuestionarioOpcoesType types = new QuestionarioOpcoesType();

            while (dr.Read())
            {
                QuestionarioOpcaoType type = new QuestionarioOpcaoType();
                type.idOpcaoQuestionario = Int32.Parse(dr["id_opcao_questionario"].ToString());
                type.IdQuestionario      = Int32.Parse(dr["id_questionario"].ToString());
                type.Descricao           = dr["descricao"].ToString();
                types.Add(type);
            }
            return(types);
        }
        public QuestionarioOpcoesType select(QuestionarioType questionario)
        {
            MySqlConnection con = new MySqlConnection(Dados.StringConexao);
            string SQL = "SELECT * FROM opcao_questionario " +
                         "WHERE id_questionario = @id";
            MySqlCommand cmd = new MySqlCommand(SQL, con);
            cmd.Parameters.AddWithValue("@id", questionario.idQuestionario);
            con.Open();
            MySqlDataReader dr = cmd.ExecuteReader(CommandBehavior.CloseConnection);

            QuestionarioOpcoesType types = new QuestionarioOpcoesType();
            while (dr.Read())
            {
                QuestionarioOpcaoType type = new QuestionarioOpcaoType();
                type.idOpcaoQuestionario = Int32.Parse(dr["id_opcao_questionario"].ToString());
                type.IdQuestionario = Int32.Parse(dr["id_questionario"].ToString());
                type.Descricao = dr["descricao"].ToString();
                types.Add(type);
            }
            return types;
        }