Linq E Ef 1207668728621762 9

689 views

Published on

Published in: Art & Photos, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
689
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Linq E Ef 1207668728621762 9

  1. 1. Pietro Brambati Microsoft blogs.msdn.com/pietrobr {{ LINQLINQ && ADO.NET Entity FrameworkADO.NET Entity Framework}}
  2. 2. 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
  3. 3. 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
  4. 4. • Dati == Oggetti • Imperativo  Dichiarativo • Per oggetti, XML e Dati relazionali
  5. 5. • 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
  6. 6. © 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

×