Tuesday, September 20, 2011

Great LINQ Examples

I found a great reference site with LINQ statements on it. I check here often for samples when I'm trying to figure out how to do something.

101 LINQ Samples

By the way, I LOVE LINQ. LINQ will give you intellisense on your queries, and it allows you to do your filtering and sorting in memory. I've also found that developing in LINQ is much faster because you end up going back to the database less, and focus on your code more. Critics of LINQ will say that LINQ adds additional overhead and will cause your performance to suffer, which is probably true, but in most cases the difference is marginal, and for me, the benefits outweigh the cost. Like any tool or technology out there, the key is understanding when to use what, and not just blindly saying that something sucks or something is great for everything. This is rarely the case.

No comments:

Post a Comment