Exemplo n.º 1
0
        private void UpdatePlayers()
        {
            // Get all the players from the MySQL database
            _mySqlDatabase.OpenConnection();
            Console.WriteLine("Retrieving players...");
            var players = _mySqlDatabase.GetAllPlayers();

            _mySqlDatabase.CloseConnection();

            // Save all the players to the SQLite database
            _sqliteDatabase.OpenConnection();
            Console.WriteLine("Saving players...");
            _sqliteDatabase.AddPlayers(players);
            _sqliteDatabase.CloseConnection();
        }
Exemplo n.º 2
0
 public static void Close()
 {
     m_database.CloseConnection();
 }