Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Parallel.For(0, rowcount, rowIndex =>
- {
- DataRow row = contadores.Rows[rowIndex];
- DataRow datarow = maquinas.AsEnumerable().Where(x => x.Field<string>("Nombre") == row.Field<string>("Maquina")).FirstOrDefault();
- if (!datarow.IsNull(0))
- row[8] = datarow[0];
- else
- throw new Exception("No se encontro el ID de la Maquina " + row[0].ToString() + ". Verifique que la lista de maquinas este atcualizada");
- DataTable datatable = BuscarJuegoID(rowIndex);
- if (datatable.Rows.Count == 1)
- row[9] = datatable.Rows[0][0];
- else
- row[9] = InsertarJuego(rowIndex);
- });
Add Comment
Please, Sign In to add comment