Showing posts with label LINQ. Show all posts
Showing posts with label LINQ. Show all posts

Saturday, May 31, 2008

.Net Road Show

I went to the northeast .net road show this week. Some of the sessions were very interesting. Chris Bowen had an interesting session about Linq. It's the same thing I was hearing about LINQ for the last year but the way he presented was very well and had some useful content. Some of the useful info:

- LinqPad is a great tool for creating LINQ expressions. It's free. Click here to download.
- ZoomIt tool from SysInternals was very handy for presentations. Click here to download.

In the afternoon, Bob Familiar did a great session about Silverlight 2. His presentation was very lively and useful. His blog has all the info about the presentation. Here some useful links.

- Woodgrove Financial web version using Silverlight
- HardRock Memorabilia built using Silverlight. Scott Guthrie already mentioned about this in his blog.

Happy Coding,

Madhu

Wednesday, February 28, 2007

LINQ

Microsoft is going to release a new data retrieval technology called LINQ(Language Integrated Querying). You will be able to write queries in C# and VB as you write any other code. The data is retrieved from the database, converted to objects(like a typical O/R mapper) and queried from C# code.

Here is the sample:

//Created by the designer
DataContext db = new DataContext();

//Querying Products table in Northwind database
var query = from p in db.Products
select p;

//Iterating all the rows
foreach(Product pr in query)
{
Console.WriteLine(pr.ProductName);
}

You can create the LINQ objects using the designer and generate the required classes.(Notice the DataContext and Product classes in the above sample. This class will be generated when you drag and drop the tables from the server explorer into the designer.)

You can download the May 2006 Community Tech preview version of LINQ from
here. Also the new "Orcas" March CTP will have the built in support for LINQ .