Guest User

Untitled

a guest
Nov 21st, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. Parallel.For(0, rowcount, rowIndex =>
  2. {
  3. DataRow row = contadores.Rows[rowIndex];
  4. DataRow datarow = maquinas.AsEnumerable().Where(x => x.Field<string>("Nombre") == row.Field<string>("Maquina")).FirstOrDefault();
  5. if (!datarow.IsNull(0))
  6. row[8] = datarow[0];
  7. else
  8. throw new Exception("No se encontro el ID de la Maquina " + row[0].ToString() + ". Verifique que la lista de maquinas este atcualizada");
  9. DataTable datatable = BuscarJuegoID(rowIndex);
  10. if (datatable.Rows.Count == 1)
  11. row[9] = datatable.Rows[0][0];
  12. else
  13. row[9] = InsertarJuego(rowIndex);
  14. });
Add Comment
Please, Sign In to add comment