The Artima Developer Community
Sponsored Link

Java Buzz Forum
Microsoft LINQ Announced: Merging mismatches with XML, SQL

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Microsoft LINQ Announced: Merging mismatches with XML, SQL Posted: Sep 13, 2005 3:18 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Microsoft LINQ Announced: Merging mismatches with XML, SQL
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement

PDC 2005 is up and running, and Microsoft announced LINQ (Language Integrated Query Project).

To reduce complexity for developers and help boost their productivity, Microsoft today announced a solution for the .NET Framework called the Language Integrated Query (LINQ) Project, a set of language extensions to the C# and Visual Basic programming languages that extends the Microsoft .NET Framework by providing integrated querying for objects, databases and XML data. Using LINQ, developers will be able to write queries natively in C# or Visual Basic without having to use other languages, such as Structured Query Language (SQL) or XQuery, a query language for accessing XML data. The announcement was made here at the Microsoft Professional Developers 2005 Conference, where Microsoft is making available a Tech Preview containing pre-release versions of the various components of the LINQ Project.

PressPass spoke with Microsoft's Anders Hejlsberg, technical fellow and chief architect of C#, and Paul Vick, technical lead for Visual Basic, to learn more about the LINQ Project.

Ander has been talking about how he wants to bring together the mismatches of XML, SQL, and OO.

Now we are seeing the fruits of trying to merge things together so developers do not need to jump to SQL or XQuery.

LINQ has several components, the first of which is a set of specifications that define how queries are expressed in API form. These specifications are key because they establish the rules for adding language support to any LINQ-enabled language and for adding query support to any LINQ-enabled objects. Then, based on these specifications, Project LINQ includes a set of language extensions to C# and Visual Basic and a set of libraries that provides integrated querying for objects, databases and XML data using native language syntax.

By default, LINQ’s core query operators can be applied to any .NET array or collection of objects, which effectively provides SQL-like and XQuery-like capabilities for any data that is in memory. LINQ also provides two new critical API’s: DLinq, for accessing relational, SQL-based data, and XLinq, for accessing hierarchical, XML-based data. The query capabilities of Project LINQ are compositional, meaning multiple queries can be easily combined together. Single queries can access data from multiple domains, and you can also specify both local and remote execution.

It will be interesting to hear more this week about this and C# 3.0!

More info at Channel 9 including a video of Anders.

Update: Ben was at this mornings demo and blogged about it with a nice example.

public void Linq1() { int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 };

DataContext context = ...; // don't worry about how I get a ref to this
Table myTable = context.GetTable();

var lowMyObjects =
from n in numbers, o in myTable
where n < 5 and o.MyNumber == n
select o;

Console.WriteLine("MyObjects whose number is less than five:");
foreach (var o in lowMyObjects) {
Console.WriteLine(o.MyName);
}
}

Read: Microsoft LINQ Announced: Merging mismatches with XML, SQL

Topic: [Sep 5, 2005 03:29 PDT] 22 Links Previous Topic   Next Topic Topic: MC4J Directions

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use