LINQ Examples Posted
Scott Guthrie has posted the materials from his recent Language INtegrated Query (LINQ) talk at Tech Ed Australia. For those looking for detailed code samples to understand LINQ further, download these materials. PowerPoint slides are also included in the download for those who want an overview, and even the slides contain quite a bit of code.
LINQ is a set of extensions for .NET to provide a powerful, native query syntax for C# and VB, allowing developers to perform SQL-like queries against any .NET collection or drop down to raw SQL when needed. LINQ can also query XML and any LINQ result sequence can be databound to ASP.NET controls. LINQ for entities (formerly described as "ObjectSpaces") is available with the August ADO.NET CTP. LINQ is currently planned for release with C# 3.0 / VB9 / Visual Studio Orcas / the .NET framework version tentatively known as 3.5.
Example of a LINQ query:
string [] cities = { “Auckland”, “Oslo”, “Sydney”,
“Seattle”, “Paris”, “Los Angeles” };IEnumerable
places = from city in cities
where city.Length > 5
orderby city descending
select city;
Further reading on LINQ:
- Official LINQ Project site
- Building and using a LINQ for SQL Class Library with ASP.NET 2.0
- Building a Photo Tagging Application using ASP.NET 2.0, LINQ, and Atlas
- Using LINQ with ASP.NET
- Using DLINQ with ASP.NET
- DLINQ with Stored Procedures
Beware HTML syntax
by
Matthias Ernst
Amazing!
by
Tomasz Blachowicz
Take a look at this video: channel9.msdn.com/showpost.aspx?postid=114680
Re: Beware HTML syntax
by
Jonathan Allen
LINQ in Action samples source code
by
Fabrice Marguerie
Educational Content
Tuning the Size of Your Thread Pool
Kirk Pepperdine May 23, 2013
Co-making Great Products
Jeff Patton May 22, 2013




Hello stranger!
You need to Register an InfoQ account or Login to post comments. But there's so much more behind being registered.Get the most out of the InfoQ experience.
Tell us what you think