Linq e Ef

4,094 views

Published on

Slide dell'evento di Perugia su LINQ e ADO.NET Entity Framework

Published in: Technology, Travel
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,094
On SlideShare
0
From Embeds
0
Number of Embeds
1,432
Actions
Shares
0
Downloads
54
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • Linq e Ef

    1. 2. Pietro Brambati Microsoft blogs.msdn.com/pietrobr { LINQ & ADO.NET Entity Framework }
    2. 6. C# 3.0 VB 9 .NET Language Integrated Query LINQ to Objects LINQ to DataSets LINQ to SQL LINQ to XML oggetti <book> <title/> <author/> <year/> <price/> </book> XML Mondo relazionale
    3. 8. Enumerate SQL Query o SProc Rows Oggetti SubmitChanges() DML o SProcs Applicazione LINQ to SQL from c in db.Customers where c.City == &quot;London&quot; select c.CompanyName SELECT CompanyName FROM Customer WHERE City = 'London' db.Customers.Add(c1); c2.City = “Perugia&quot;; db.Customers.Remove(c3); INSERT INTO Customer … UPDATE Customer … DELETE FROM Customer …
    4. 10. <ul><li>Dati == Oggetti </li></ul><ul><li>Imperativo  Dichiarativo </li></ul><ul><li>Per oggetti, XML e Dati relazionali </li></ul>
    5. 18. <ul><li>ObjectContect </li></ul><ul><ul><li>Represents a Connection to an Underlying Data Store </li></ul></ul><ul><li>ObjectQuery<T> </li></ul><ul><ul><li>Represents a Command to be Executed Against an Entity Data Model </li></ul></ul><ul><li>Data Classes </li></ul><ul><ul><li>Represent Entities </li></ul></ul><ul><li>ObjectServices: Objects Over Entities </li></ul><ul><ul><li>API for Programming Against Entity Data Models </li></ul></ul><ul><li>Query: Two Approaches </li></ul><ul><ul><li>LINQ: Language Integrated Query </li></ul></ul><ul><ul><li>Entity SQL </li></ul></ul><ul><ul><ul><li>Text-Based Query </li></ul></ul></ul><ul><ul><ul><li>Query Builder Methods </li></ul></ul></ul>
    6. 21. <ul><li>LINQ to * : un approccio unificato per l’accesso a sorgenti dati eterogenee </li></ul><ul><li>ADO.NET EF: il modello concettuale per sviluppare… </li></ul><ul><li>LINQ to Entites : LINQ per EF </li></ul><ul><li>LINQ to SQL e LINQ to Entities sono pensati per diversi scenari </li></ul>
    7. 22. © 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

    ×