Top Banner
LINQ for SQL SQL Saturday May 2009 David Fekke
17

LINQ for SQL

Dec 31, 2015

Download

Documents

Kylie Bauer

LINQ for SQL. SQL Saturday May 2009 David Fekke. Who am I?. David Fekke [email protected] Software Engineer at LPS Reformed DBA/Sharepoint developer JaxFusion.org. LINQ Language Integrated Query. ORM or Object Relational Mapper. .NET 3.5 Framework. SQL vs. LiNQ. Abstraction. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: LINQ for SQL

LINQ for SQLSQL Saturday May 2009

David Fekke

Page 2: LINQ for SQL

Who am I?

•David Fekke

[email protected]

•Software Engineer at LPS

•Reformed DBA/Sharepoint developer

•JaxFusion.org

Page 3: LINQ for SQL

LINQLanguage Integrated

Query

Page 4: LINQ for SQL

ORMor

Object Relational Mapper

Page 5: LINQ for SQL

.NET 3.5 Framework

Page 6: LINQ for SQL

SQL vs. LiNQ

Page 7: LINQ for SQL

Abstraction

Page 8: LINQ for SQL

SQL Server 2005/8

Page 9: LINQ for SQL

•MySQL

•PostgreSQL

•Other RDBMS supported by Open Source

Page 10: LINQ for SQL

Oracle ProviderThrough DevArt

Page 11: LINQ for SQL

IQueriable Interface

Page 12: LINQ for SQL

•Query Objects

•Query XML

•Query Databases

Page 13: LINQ for SQL

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

Page 14: LINQ for SQL

LINQ makes use .NET 3.5

language features

Page 15: LINQ for SQL

C# 3.0VB .NET 9.0

Page 16: LINQ for SQL

Lamda ExpressionsAnonymous Types

Dynamic Types

Page 17: LINQ for SQL

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