locked
how to show mysql data on windows store app

    Question

  • i have successfuly connected to my mysql database and i abled to store data into it but i cant retriew data from it to display on my windows store app. How can i show mysql tables on windows store app
    private void view_btnClick_Click(object sender, RoutedEventArgs e)
            {
                string Query = @"SELECT
                                `tbl_branch`.`branch_id`,
                                `tbl_branch`.`branch_name`
                                FROM `bcasdb`.`tbl_branch`;";
                //This is command class which will handle the query and connection object.
                MySqlConnection conn = new MySqlConnection(BCASApp.DataModel.DB_CON.connection);
                MySqlCommand cmd = new MySqlCommand(Query, conn);
               
            }

    private void view_btnClick_Click(object sender, RoutedEventArgs e)
            {
                string Query = @"SELECT
                                `tbl_branch`.`branch_id`,
                                `tbl_branch`.`branch_name`
                                FROM `bcasdb`.`tbl_branch`;";
                //This is command class which will handle the query and connection object.
                MySqlConnection conn = new MySqlConnection(BCASApp.DataModel.DB_CON.connection);
                MySqlCommand cmd = new MySqlCommand(Query, conn);
               
            }

    Tuesday, October 14, 2014 1:07 PM

Answers