Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void globalAccess()
- {
- DbSqliteConnection("MySql.Data.MySqlClient", GetConnectionStringByProvider("MySql.Data.MySqlClient"));
- global.Open();
- DbCommand cmdGames = global.CreateCommand();
- cmdGames.CommandText = "select * from games";
- cmdGames.CommandType = CommandType.Text;
- gdgAdapter.SelectCommand = cmdGames;
- gdgAdapter.Fill(DsGameScores, "games");
- DbCommand cmdScores = global.CreateCommand();
- cmdScores.CommandText = "select * from scores order by score desc";
- cmdScores.CommandType = CommandType.Text;
- gdsAdapter.SelectCommand = cmdScores;
- gdsAdapter.Fill(DsGameScores, "scores");
- global.Close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement