linq e ef 1207668728621762 9
TRANSCRIPT
![Page 1: Linq E Ef 1207668728621762 9](https://reader035.vdocument.in/reader035/viewer/2022081516/554ebbc7b4c9053c4b8b465c/html5/thumbnails/1.jpg)
![Page 2: Linq E Ef 1207668728621762 9](https://reader035.vdocument.in/reader035/viewer/2022081516/554ebbc7b4c9053c4b8b465c/html5/thumbnails/2.jpg)
Pietro BrambatiMicrosoftblogs.msdn.com/pietrobr
{ { LINQ LINQ && ADO.NET Entity ADO.NET Entity FrameworkFramework}}
![Page 3: Linq E Ef 1207668728621762 9](https://reader035.vdocument.in/reader035/viewer/2022081516/554ebbc7b4c9053c4b8b465c/html5/thumbnails/3.jpg)
![Page 4: Linq E Ef 1207668728621762 9](https://reader035.vdocument.in/reader035/viewer/2022081516/554ebbc7b4c9053c4b8b465c/html5/thumbnails/4.jpg)
![Page 5: Linq E Ef 1207668728621762 9](https://reader035.vdocument.in/reader035/viewer/2022081516/554ebbc7b4c9053c4b8b465c/html5/thumbnails/5.jpg)
![Page 6: Linq E Ef 1207668728621762 9](https://reader035.vdocument.in/reader035/viewer/2022081516/554ebbc7b4c9053c4b8b465c/html5/thumbnails/6.jpg)
C# 3.0C# 3.0C# 3.0C# 3.0 VB 9VB 9VB 9VB 9
.NET Language Integrated Query.NET Language Integrated Query
LINQ LINQ toto
ObjeObjectscts
LINQ LINQ toto
ObjeObjectscts
LINQ LINQ toto
DataDataSetsSets
LINQ LINQ toto
DataDataSetsSets
LINQ LINQ toto
SQLSQL
LINQ LINQ toto
SQLSQL
LINQ LINQ toto
XMLXML
LINQ LINQ toto
XMLXML
oggettioggetti
<book> <title/> <author/> <year/> <price/></book>
XMXMLL
Mondo Mondo relazionarelaziona
lele
![Page 7: Linq E Ef 1207668728621762 9](https://reader035.vdocument.in/reader035/viewer/2022081516/554ebbc7b4c9053c4b8b465c/html5/thumbnails/7.jpg)
![Page 8: Linq E Ef 1207668728621762 9](https://reader035.vdocument.in/reader035/viewer/2022081516/554ebbc7b4c9053c4b8b465c/html5/thumbnails/8.jpg)
ApplicazionApplicazionee
LINQ to SQLLINQ to SQL
from c in db.Customerswhere c.City == "London"select c.CompanyName
EnumeratEnumeratee
SELECT CompanyNameFROM CustomerWHERE City = 'London'
SQL QuerySQL Queryo 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 …
DML DML o SProcso SProcs
![Page 9: Linq E Ef 1207668728621762 9](https://reader035.vdocument.in/reader035/viewer/2022081516/554ebbc7b4c9053c4b8b465c/html5/thumbnails/9.jpg)
![Page 10: Linq E Ef 1207668728621762 9](https://reader035.vdocument.in/reader035/viewer/2022081516/554ebbc7b4c9053c4b8b465c/html5/thumbnails/10.jpg)
• Dati == Oggetti
• Imperativo Dichiarativo
• Per oggetti, XML e Dati relazionali
![Page 11: Linq E Ef 1207668728621762 9](https://reader035.vdocument.in/reader035/viewer/2022081516/554ebbc7b4c9053c4b8b465c/html5/thumbnails/11.jpg)
![Page 12: Linq E Ef 1207668728621762 9](https://reader035.vdocument.in/reader035/viewer/2022081516/554ebbc7b4c9053c4b8b465c/html5/thumbnails/12.jpg)
![Page 13: Linq E Ef 1207668728621762 9](https://reader035.vdocument.in/reader035/viewer/2022081516/554ebbc7b4c9053c4b8b465c/html5/thumbnails/13.jpg)
![Page 14: Linq E Ef 1207668728621762 9](https://reader035.vdocument.in/reader035/viewer/2022081516/554ebbc7b4c9053c4b8b465c/html5/thumbnails/14.jpg)
![Page 15: Linq E Ef 1207668728621762 9](https://reader035.vdocument.in/reader035/viewer/2022081516/554ebbc7b4c9053c4b8b465c/html5/thumbnails/15.jpg)
![Page 16: Linq E Ef 1207668728621762 9](https://reader035.vdocument.in/reader035/viewer/2022081516/554ebbc7b4c9053c4b8b465c/html5/thumbnails/16.jpg)
![Page 17: Linq E Ef 1207668728621762 9](https://reader035.vdocument.in/reader035/viewer/2022081516/554ebbc7b4c9053c4b8b465c/html5/thumbnails/17.jpg)
![Page 18: Linq E Ef 1207668728621762 9](https://reader035.vdocument.in/reader035/viewer/2022081516/554ebbc7b4c9053c4b8b465c/html5/thumbnails/18.jpg)
• 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
![Page 19: Linq E Ef 1207668728621762 9](https://reader035.vdocument.in/reader035/viewer/2022081516/554ebbc7b4c9053c4b8b465c/html5/thumbnails/19.jpg)
© 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 BrambatiMicrosoftblogs.msdn.com/pietrobr