Resources for learning LINQ?

社会主义新天地 提交于 2019-11-28 16:33:43

问题


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?


回答1:


In the beginning, I found Standard Query Operators (MS Word .doc) an invaluable reference.

Pro LINQ by Joseph Rattz is a great book on the subject, although it doesn't cover LINQ to Entities.

As well as in depth examples for each of the standard query operators, it covers:

  • LINQ to Objects
  • LINQ to XML
  • LINQ to DataSet
  • LINQ to SQL



回答2:


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

http://www.linqpad.net/




回答3:


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




回答4:


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.




回答5:


This book/ebook is very good also. Very good for starters. http://www.manning.com/marguerie/




回答6:


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).




回答7:


The next best thing to a personal beginner LINQ tutor:

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




回答8:


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



来源:https://stackoverflow.com/questions/830581/resources-for-learning-linq

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!