I have a list of IDs, and I need to run several stored procedures on each ID.
When I am using a standard foreach loop, it works OK, but when I have many records, it
EF is not thread safe, so you cannot use Parallel.
Take a look at Entity Framework and Multi threading
and this article.