Project LINQ - Language INtegrated Query (by yag)

Published 12 September 05 10:22 PM

Well, the hints have been going out for a while now, and finally we can talk about this thing we've been working on for so long. At the PDC opening keynote today, we unveiled a number of things including Project LINQ. The Language Integrated Query framework (the LINQ Project) is a set of language extensions to C# and VB and a unified programming model that extends the .NET Framework to offer integrated querying for objects, databases and XML. Basically, instead of writing your queries in strings, you can now do them directly in the language of your choice.

Let's take a look at a simple code sample. Let's say there's a collection of Country objects called Countries. You can now get all countries with a population ofless than 1 million with a SQL-like syntax

Dim SmallCountries = Select Country _
From Country In Countries _
Where Country.Population < 1000000

The great thing about this is that it works over database data, XML or objects (anything that is IEnumerable). So, for those of you used to, for instance, Fox - though the syntax is familiar, the capabilities are much further reaching in your daily programming.

There will be a lot of blog posts by members of the C#, VB and various data teams all about this. Also, starting on Wednesday (depending on MSDN scheduling) there will be bits that can be downloaded to test this out. I'll be modifying this entry through the course of the day (or, more likely, night) to point to other blog entries on this topic.

Boy it's nice to be able to show this publicly now!

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# PaulY's Weblog said on September 13, 2005 3:07 PM:




Have you seen the buzz about the Visual Basic Futures that
have been announced today?

&amp;nbsp;...
# The Lazy DBA said on September 13, 2005 4:02 PM:
# The Lazy DBA said on September 13, 2005 4:02 PM:
# The Lazy DBA said on September 13, 2005 11:17 PM:
# Brad McCabe's WebLog said on September 14, 2005 12:36 PM:
Normally I don't like to make entries that are just a collection of links, but this time I will make...
# AlexSosa said on September 18, 2005 11:52 PM:
Glad to see that VB will include many traits that made VFP shine:
1) Ability to write SQL statements directly (no quotes required) with all that implies. Be thoughtful when you define the syntax: consider using ANSI SQL as your guide.
2) Focus on developer productivity, not theoretical purity, but with sound design.
3) Dynamic language capabilities. I understand that at present this means late binding but I hope it may lead to macros or, better yet, the capability to generate code, save, compile, and run.
4) A command box. A true "killer app".
5) I would prefer to see VFP extended to easily write internet apps, but I am ready to embrace alternatives.

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required

About YAG

Yair Alan Griver is the architect for the Microsoft.com community properties. As architect, he is responsible for creating a coherent underlying platform for properties that include blogs.msdn.com, forums.msdn.com, GotDotNet, chats and CodePlex. In addition to MSCOM architect, Alan is also responsible for the continued development of Visual FoxPro. Prior to the architect role, Alan was Group Manager for the Visual Studio Data group. As Group Manager, Alan’s teams produced the tools used inside of Visual Studio .NET, Office and SQL Server that surface data capabilities, as well as Visual FoxPro. Prior to this position, Alan was a Lead Program Manager and Community Evangelist for Visual Basic .NET, driving community interests into Visual Basic .NET. Before joining Microsoft, Alan was Chief Information Officer at GoAmerica, a publicly traded telecommunications (wireless internet) company, and co-founder and CIO of Flash Creative Management a business strategy and technology consulting company. Alan is the author of five books on Visual FoxPro and Visual Basic, the creator of various development frameworks, and has developed database systems ranging into the thousands of users. He has spoken around the world on databases, object orientation and development team management issues, as well as XML and messaging-based applications.

This Blog

Syndication

Page view tracker