Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Linq e Ef

4,173 views

Published on

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

Published in: Technology, Travel
  • If you need your papers to be written and if you are not that kind of person who likes to do researches and analyze something - you should definitely contact these guys! They are awesome ⇒⇒⇒WRITE-MY-PAPER.net ⇐⇐⇐
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Sex in your area is here: ❤❤❤ http://bit.ly/2F90ZZC ❤❤❤
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Dating direct: ❶❶❶ http://bit.ly/2F90ZZC ❶❶❶
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

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

×