Quantcast
Viewing all articles
Browse latest Browse all 42

Comment by Chris on Why does adding an unnecessary ToList() drastically speed this LINQ query up?

If you're only going for a single record you should use .Single, by using .First you run across the chance that there is more than one matching row and you may not be getting the data you expect.

Viewing all articles
Browse latest Browse all 42

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>