Pietro Brambati
Microsoft
blogs.msdn.com/pietrobr
{{ LINQLINQ &&
ADO.NET Entity FrameworkADO.NET Entity Framework}}
C# 3.0C# 3.0 VB 9VB 9
.NET Language Integrated Query.NET Language Integrated Query
LINQLINQ
toto
ObjeObje
ctscts
LINQLINQ
toto
DataData
SetsSets
LINQLINQ
toto
SQLSQL
LINQLINQ
toto
XMLXML
oggettioggetti
<book>
<title/>
<author/>
<year/>
<price/>
</book>
XMXM
LL
MondoMondo
relazionalrelazional
ee
ApplicazioneApplicazione
LINQ to SQLLINQ to SQL
from c in db.Customers
where c.City == "London"
select c.CompanyName
EnumerateEnumerate
SELECT CompanyName
FROM Customer
WHERE City = 'London'
SQL QuerySQL Query
o SProco SProc
RowsRows
OggettiOggetti
db.Customers.Add(c1);
c2.City = “Perugia";
db.Customers.Remove(c3);
SubmitChanges()SubmitChanges()
INSERT INTO Customer …
UPDATE Customer …
DELETE FROM Customer …
DMLDML
o SProcso SProcs
• Dati == Oggetti
• Imperativo  Dichiarativo
• Per oggetti, XML e Dati relazionali
• LINQ to * : un approccio unificato per
l’accesso a sorgenti dati eterogenee
• ADO.NET EF: il modello concettuale per
sviluppare…
• LINQ to Entites : LINQ per EF
• LINQ to SQL e LINQ to Entities sono
pensati per diversi scenari
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market
conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.
MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Pietro Brambati
Microsoft
blogs.msdn.com/pietrobr

Linq E Ef 1207668728621762 9

  • 2.
    Pietro Brambati Microsoft blogs.msdn.com/pietrobr {{ LINQLINQ&& ADO.NET Entity FrameworkADO.NET Entity Framework}}
  • 6.
    C# 3.0C# 3.0VB 9VB 9 .NET Language Integrated Query.NET Language Integrated Query LINQLINQ toto ObjeObje ctscts LINQLINQ toto DataData SetsSets LINQLINQ toto SQLSQL LINQLINQ toto XMLXML oggettioggetti <book> <title/> <author/> <year/> <price/> </book> XMXM LL MondoMondo relazionalrelazional ee
  • 8.
    ApplicazioneApplicazione LINQ to SQLLINQto SQL from c in db.Customers where c.City == "London" select c.CompanyName EnumerateEnumerate SELECT CompanyName FROM Customer WHERE City = 'London' SQL QuerySQL Query o SProco SProc RowsRows OggettiOggetti db.Customers.Add(c1); c2.City = “Perugia"; db.Customers.Remove(c3); SubmitChanges()SubmitChanges() INSERT INTO Customer … UPDATE Customer … DELETE FROM Customer … DMLDML o SProcso SProcs
  • 10.
    • Dati ==Oggetti • Imperativo  Dichiarativo • Per oggetti, XML e Dati relazionali
  • 18.
    • LINQ to* : un approccio unificato per l’accesso a sorgenti dati eterogenee • ADO.NET EF: il modello concettuale per sviluppare… • LINQ to Entites : LINQ per EF • LINQ to SQL e LINQ to Entities sono pensati per diversi scenari
  • 19.
    © 2007 MicrosoftCorporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. Pietro Brambati Microsoft blogs.msdn.com/pietrobr