While this does fix it, it completely destroys any advantages you get from using the IEnumerable (or IQueryable) returned by Linq2SQL. Creating an in-memory list with large data is pretty bad performance wise.