www.beaverbarcamp.com

Recent site activity

Session Notes‎ > ‎

Intro to Linq


Intro to Linq (Microsoft Visual Studio 2008)

Rory and Colin


Linq = Language INtegrated Query


Allow SQL-esqe query of C# objects

 ex:
  from foo in mycollection
  where foo.bar > 5
  select foo.name
 
Can also use functions like average, aggregate, and other SQL-type stuff on IEnumerable objects.

Uses anonymous delegates, anonymous types

IQueryable provider - Linq can be translated into SQL, Oracle, Amazon, ADO, and other interfaces.


Resources:

 LinqPad - free tool for testing and building Linq queries
 
 Book: Linq in Action

 ScottGu's Blog