Code: Select all
List<string> strings = context.Blah.Select(s => s.Time).ToList();
List<double> thing2s = context.Blah.Select(column).ToList();
This is getting data from a database. There is no chance that the order between the two lists might get out of whack? (Assuming that no modifications are done on the database during the time the 2 lines of code are run.)
So in other words if the lists were like:
strings thing2s
A 1
B 2
C 3
Is there a chance different orders of the lists being returned...something like this happening:
A 2
C 3
B 1