Presentation is loading. Please wait.

Presentation is loading. Please wait.

LINQ for SQL SQL Saturday May 2009 David Fekke.

Similar presentations


Presentation on theme: "LINQ for SQL SQL Saturday May 2009 David Fekke."— Presentation transcript:

1 LINQ for SQL SQL Saturday May 2009 David Fekke

2 Who am I? David Fekke davidfekke@gmail.com Software Engineer at LPS
Reformed DBA/Sharepoint developer JaxFusion.org

3 LINQ Language Integrated Query

4 ORM or Object Relational Mapper

5 .NET 3.5 Framework

6 SQL vs. LiNQ

7 Abstraction

8 SQL Server 2005/8

9 MySQL PostgreSQL Other RDBMS supported by Open Source

10 Oracle Provider Through DevArt

11 IQueriable Interface

12 Query Objects Query XML Query Databases

13 var myQuery = from p in db.people
where p.firstname == “David” select p

14 LINQ makes use .NET 3.5 language features

15 C# 3.0 VB .NET 9.0

16 Lamda Expressions Anonymous Types Dynamic Types

17 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 querying SQL Statements are auto-generated with the exception of Stored Procs


Download ppt "LINQ for SQL SQL Saturday May 2009 David Fekke."

Similar presentations


Ads by Google