Beginners Guide to LINQ?

LINQ stands for Language Integrated Query and is a set of extensions for . NET that allow you to query data the same way from code and isn't tied to a specific data source. You can use the same LINQ code for SQL Server, XML, objects, DataSets, and Entities Here is a good intro from Scott Guthrie This is a nice set of 101 LINQ Samples.

LINQ stands for Language Integrated Query and is a set of extensions for . NET that allow you to query data the same way from code and isn't tied to a specific data source. You can use the same LINQ code for SQL Server, XML, objects, DataSets, and Entities.

Here is a good intro from Scott Guthrie This is a nice set of 101 LINQ Samples.

101 LINQ Sampels is fantastic, I still use it a lot and always refer it for others – Slace Oct 5 '08 at 11:37.

Two books you should consider for learning about LINQ, both from Manning: C# in Depth LINQ in Action The former was by far the better written, and taught me almost as much about LINQ in a single chapter than the latter did in a whole book. LINQ is built on a lot of foundation, and C# in Depth builds it up from the ground. The second book is a whole lot better than nothing, and you will learn things specifically about LINQ that you won't learn in the first.

But the first book will give you much better foundation, and puts up at least a token perspective instead of more or less blindly following the MS line. So, I'm recommending C# in Depth first and foremost for learning LINQ. Mike.

Start with everything Scott Guthrie has on linq Get LINQ Pocket Reference, which is an excerpt from C# 3.0 in a Nutshell.

I recommend the Hooked On LINQ wiki. They've got some great introductory info, as well as more in depth info and samples on all of the operators. I listed a lot of LINQ references in the show notes for Herding Code Episode 10 (on LINQ).

One of my favorites is an MSDN Magazine article which explains how LINQ works from a framework perspective in a way which really helped me understand how it works.

Here are a couple of good tutorials (video) from OakLeaf Systems: oakleafblog.blogspot.com/2007/04/two-new... oakleafblog.blogspot.com/2007/05/mike-ta... EDIT: I just ran into this great tool created by the author of C# in a Nutshell: linqpad.net/ It includes lots of great easy to follow samples.

I'd strongly suggest you have a play around with LINQPad (linqpad.net), it's a free tool which allows (umong others things) you to connect to a database server and query it using LINQ to SQL. It takes the pain out of having to set up Console Applications to do the playing.

The only problem with LinqPad is that it does not have intelisense like you would get with Visual Studio. That does make it a little harder to explore a data context object. – Chris Feb 11 at 15:47 @Chris, intellisense in LinqPad is a premium feature requiring you to send in a few bucks.

Well, well worth it. LinqPad is genuine interactive programming in . NET, which is an often-overlooked but massively valuable facility.

Many people drift to dynamic languages because they usually come along with interactive programming experiences, not realizing it's the experience they need rather than the language. LinqPad, but only LinqPad in our current ecosystem, proves that programming C# can be as fast and as fun as programming in Python. – Reb.

Cabin Aug 24 at 5:13.

Linq is short for "Language integrated query. " It's a set of language enhancements built into C# and VB. Basically, what you get is a bunch of standard query operators that can be applied to any IEnumerable of type T.

There's a lot of different linq providers for specific types of data- for example, there's linq to xml, linq to entities, even linq to sharepoint. To get started with linq, in all its many forms, I suggest the book Pro Linq by Joseph C. Rattz.It's an excellent overview of Linq.

He takes a ground-up approach, first describing all the language features (like Lambda Expressions and Expression Trees) that Linq is built on, and then moving on to some standard linq provider implementations. Additionally, here's a pretty good MSDN article describing Linq: LINQ: . NET Language-Integrated Query Now, Linq to Sql is a linq provider written specifically for SQL Server.

Included in this provider is an OR/M, that gives you some handy-dandy functionality (like typing out all your sql tables, so you get a robust design-time view of your database schema. ) It's totally awesome, and for me, has greatly speed up development time when working with a sql database. The book I recommended above also has a great section about using Linq To Sql.

Also, here's a good "beginner's guide" article from MSDN: Linq To SQL: . NET Language-Integrated Query for Relational Data.

To practice without the need to write wrap code just to execute linq-queries you could use linqpad.net.

Here you go. I started with ScottGu's explanation/examples and went from there: weblogs.asp.net/scottgu/archive/2007/05/....

I think this book: C# in Depth By Jon Skeet is an excellent programmers' guide that matches your exact needs (moving from earlier C# to C#3.5). Also if you order it you get the electronic copy too - something more publishers should do (excellent for both Kindles and searching).

A bit old but still relevant: developerzen.com/2007/09/17/introduction....

From MSDN, here are some papers, written by Anders and others: LINQ: . NET Language-Integrated Query LINQ to SQL: . NET Language-Integrated Query for Relational Data PS after writing this, I see someone has already linked to these, but buried inside a paragraph, so I'll keep them pulled out here in list form as well.

There's a VB. Net version of the 101 Code Samples page too - msdn.microsoft.com/en-us/vbasic/bb688088....

There is a podcast here (shameless plug) that covers LINQ from one of the authors of LINQ in Action. Deep Fried Bytes - Episode 14: LINQ’ing the Future of Development with Jim Wooley Lots of great stuff in that show that may also help you out.

Here is a step by step tutorial on how to incorporate LINQ with your web applications within asp.net. Hope this helps progtalk.com/viewarticle.aspx?articleid=68.

It may be useful to beginners on linq. The step by step guide with image. readerstimepass.blogspot.com/2010/11/ste....

MSDN Virtual Lab: Visual Basic 9 and LINQAfter completing this lab, you will be better able to use LINQ with in-memory collections, access database data using LINQ, handle XML documents with LINQ, and understand the standard query operators. Webcast: Introduction to LINQ in Visual BasicIn this Webcast you will learn how to get started writing LINQ queries using the simple but powerful query syntax available in Visual Basic. We'll walk through a variety of basic queries as well look at aggregates and groups over different data sources including XML.

Live From Redmond: VB9 – LINQ to SQL & O/R Designer Deep DiveThis web cast shows you how to use the new O/R designer to build applications that take advantage of LINQ to SQL. Live From Redmond: VB9 – LINQ Best PracticesThis web cast will explore best practices for writing easy to read, consumable queries, including naming, usage, and performance ideas.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions