Feeds

Mind your languages with Microsoft LINQ

Data-access sticking plaster?

Secure remote control for conventional and virtual desktops

We've been hearing a growing amount this year about LINQ - Microsoft's Language Integrated Query. You can expect a lot more next year, starting in February as Microsoft launches Visual Studio 2008 and SQL Server 2008. LINQ promises to close the skills and knowledge gap for developers using C# and VisualBasic trying to connect to different data types and sources.

Before Visual Studio and SQL Server 2008 hit, here's what you as a programmer need to know about LINQ.

LINQ was created as the solution to a communication problem. Most modern programming languages are Object-Oriented (OO) while much of the world's data is stored in relational databases. Application programmers are used to dealing with things such as objects, classes and methods but they are not usually familiar with SQL - the language used to query relational databases.

As Anders Hejlsberg - the noted language expert and designer of Microsoft's C# - has argued, this has created: "An impedance mismatch today between general-purpose programming languages and databases. LINQ adds native query capability into programming languages such as C# and VisualBasic."

At a very simplistic level, LINQ can be seen as an OO querying language that can be understood and used by OO programmers and yet run against relational structures. But whilst this describes the way that it will often be used, LINQ actually does a lot more and is described by Hejlsberg and colleague Don Box here as: "General-purpose query facilities added to the .NET Framework [that] apply to all sources of information, not just relational or XML data."

So LINQ allows application programmers of an OO mindset to query any data source (Relational, OO and XML) in a way that they find intuitively easier. It is not, despite what some people have written, a replacement for SQL. To be explicitly clear about this, whilst DBAs are, of course, free to use LINQ if they so wish, there is no suggestion that it will become their language of choice.

For programmers, one of the best resources I've found for getting one's brain around LINQ is the intriguingly labeled 101 LINQ Samples for Visual C# that can be found here. Intriguing, why? Because there are actually 99 samples. Oh, those Microsoft clowns.

So does LINQ open the door to a pain-free world? I never said that. Most people would agree that there is an "impedance mismatch" between general-purpose programming languages and databases. We can, though, essentially address this problem from either end.

Secure remote control for conventional and virtual desktops

More from The Register

next story
The Return of BSOD: Does ANYONE trust Microsoft patches?
Sysadmins, you're either fighting fires or seen as incompetents now
Munich considers dumping Linux for ... GULP ... Windows!
Give a penguinista a hug, the Outlook's not good for open source's poster child
Intel's Raspberry Pi rival Galileo can now run Windows
Behold the Internet of Things. Wintel Things
Linux Foundation says many Linux admins and engineers are certifiable
Floats exam program to help IT employers lock up talent
Microsoft cries UNINSTALL in the wake of Blue Screens of Death™
Cache crash causes contained choloric calamity
Eat up Martha! Microsoft slings handwriting recog into OneNote on Android
Freehand input on non-Windows kit for the first time
prev story

Whitepapers

Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
Top 10 endpoint backup mistakes
Avoid the ten endpoint backup mistakes to ensure that your critical corporate data is protected and end user productivity is improved.
Top 8 considerations to enable and simplify mobility
In this whitepaper learn how to successfully add mobile capabilities simply and cost effectively.
Rethinking backup and recovery in the modern data center
Combining intelligence, operational analytics, and automation to enable efficient, data-driven IT organizations using the HP ABR approach.
Reg Reader Research: SaaS based Email and Office Productivity Tools
Read this Reg reader report which provides advice and guidance for SMBs towards the use of SaaS based email and Office productivity tools.