Ejemplo n.º 1
0
 private void LoadFromMySQL()
 {
     var Scripts = new CommonPage();
     var connection = Scripts.GetavDBConnection();
     var command = connection.CreateCommand();
     command.CommandText = String.Format("select * from avDBGames where id = {0}", Id);
      var Reader = command.ExecuteReader();
      while (Reader.Read())
      {
          Date = Convert.ToDateTime(Reader.GetValue(Reader.GetOrdinal("Date")));
      }
      connection.Close();
 }