Resources for learning LINQ?

2019-01-30 20:21发布

I'm looking to learn LINQ, but I'm finding that there is a lot more to it then what I initally expected. In fact, there's so much that I'm not sure where is the best place to start. I know that there's LINQ to SQL, and LINQ to Entities, and a number of other LINQ whatevers out there.

Which is the best to start with? It seems that I see more information readily available about LINQ to SQL, but I have seen quite a bit of information about LINQ to Entities also. Is LINQ to Entities more difficult than LINQ to SQL?

Also, I'm looking for some good resources on learning LINQ. I've seen that Scott Gu has a few blogs on LINQ to SQL, but I'm looking for a little more. Does anyone have a LINQ book that they're impressed with?

8条回答
做个烂人
2楼-- · 2019-01-30 20:41

Another good way to learn LINQ is by browsing through code examples, and try them out on your own, if time permits.

Here are two of my personal favorite LINQ resources, which both have easy to understand code examples, and in my view are great for the beginner:

http://linqsamples.com

and

http://www.dotnetperls.com/linq

查看更多
女痞
3楼-- · 2019-01-30 20:53

The next best thing to a personal beginner LINQ tutor:

http://www.asp.net/LEARN/linq-videos/

查看更多
4楼-- · 2019-01-30 20:57

LINQ Pad is a good way to start learning, its also free...

http://www.linqpad.net/

查看更多
老娘就宠你
5楼-- · 2019-01-30 20:58

Although this isn't free, and might seem "daunting" to a beginner. But the Professional LINQ book published by Wrox I found was good as a "get your feet wet" book. It's not what I would consider part of their professional series despite the title and doesn't go into nearly as much depth as it should, but it's a good start nevertheless.

查看更多
何必那么认真
6楼-- · 2019-01-30 21:01

Here's a great site for practicing it (and also c#). It still doesn't have LOTS of questions, but there are just enough to get you going (and you can also add questions yourself).

查看更多
Viruses.
7楼-- · 2019-01-30 21:04

I have been looking quite alot for the same, but i have found that there isnt really a place where everything is together..

But there is a few good resources.

LinQ 101 - http://msdn.microsoft.com/en-us/vcsharp/aa336746.aspx

And this one got quite a few small example snippets on how to do things in alot of different languages. And it got a section for linq too

http://www.java2s.com/Code/CSharp/LINQ/CatalogLINQ.htm

Id say start with linq to sql, they stopped developing that a while back, but the syntax is exactly like linq to entities, linq to entities and linq to sql is almost the same, there is a few things different, but id say start from the "bottom" :)

This is a really good tutorial about how to jump from "linq to sql" to "linq to entities" http://naspinski.net/post/Getting-started-with-Linq-To-Entities.aspx

查看更多
登录 后发表回答