F
FcabralJ
Guest
I have a List<Iqueryable> object as a result of a groupping I want based on the year of the data, But I getting an exception: The command has timedout.
Do you know why?
var lstFilters = (from pv in dbLinq.Table
group pv by new { pv.Date.Year}
).ToList();
After, I'm tryingo to Loop through it in parallel and do some stuff:
lstFilters.AsParallel().ForAll(groups=>
{
foreach (var group in groups) // I have the exception here
{
// do some stuff here
}
}
Continue reading...
Do you know why?
var lstFilters = (from pv in dbLinq.Table
group pv by new { pv.Date.Year}
).ToList();
After, I'm tryingo to Loop through it in parallel and do some stuff:
lstFilters.AsParallel().ForAll(groups=>
{
foreach (var group in groups) // I have the exception here
{
// do some stuff here
}
}
Continue reading...