Republished With Permission - Original Article
One of the new things I’m super excited about right now is
the LINQ family of technologies that are starting to come out (LINQ, DLINQ,
XLINQ and others soon).
LINQ will be fully integrated with the next release of
Visual Studio (code-name: Orcas) and it will include some very cool framework
and tool support (including full intellisense and designer support). Last week
the LINQ team released the May CTP drop of LINQ that you can download from here. What is cool about
this CTP is that it works with VS 2005, and allows you to start learning more
about it immediately. It incorporates a bunch of customer feedback (for
example: support for stored procedures in DLINQ), and also includes a built-in
ASP.NET Web-Site Project to enable you to leverage it with ASP.NET apps (note:
you can also use LINQ with the new VS 2005
Web Application Project option as well).
I’m going to put together a few blog postings over the next
few weeks that show off ways to use LINQ/DLINQ/XLINQ within ASP.NET projects.
This first walkthrough below will help you get started and introduce some of
the important LINQ concepts. You can follow-along by downloading the May CTP
LINQ preview above and typing in the code below (I list all of it below), or
you can download and run the complete .zip file of my samples here (note: you
still need to install the LINQ May CTP drop for the .zip file of samples to
work).
Note: LINQ, DLINQ and XLINQ will be fully supported in both
C# and VB. I am using C# for the example belows.