LiNQ SQL Saturday David Fekke
LiNQ Language Integrated Query
.NET 3.5 Framework
SQL vs. LiNQ
Abstraction
SQL Server 2005 Oracle
MySQL PostgreSQL Other RDBMS supported by Open Source
IQueriable Interface
Query Objects Query XML Query Databases
var myQuery = from p in db.people where p.firstname == “David” select p
LiNQ makes use .NET 3.5 language features
C# 3.0 VB .NET 9.0
Lamda Expressions Anonymous Types Dynamic Types
Pros and Cons Visual Studio Generates Object code No reason to create separate queries for each RDBMS Auto parametrize variables Use Stored Procedures No hinting careful about in memory quering SQL Statements are auto-generated with the exception of Stored Procs