A combination of "you learn something new every day" and "Lessons Learned".
Monday, July 21, 2014
EF load v to array
I did a performance comparison with query.Load() and query.ToArray() in EF 6 and found that the latter performs faster because .Load() calls ToList() to load the objects then disposes of the list. This takes more time and resources to execute, so why not call query.ToArray() and just let that load the conext?