Linq e Ef
Upcoming SlideShare
Loading in...5

Linq e Ef



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

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



Total Views
Views on SlideShare
Embed Views



6 Embeds 1,214 1199 8 3 2 1 1



Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

Linq e Ef Linq e Ef Presentation Transcript

  • Pietro Brambati Microsoft { LINQ & ADO.NET Entity Framework }
  • 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
  • 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 …
    • Dati == Oggetti
    • Imperativo  Dichiarativo
    • Per oggetti, XML e Dati relazionali
    • ObjectContect
      • Represents a Connection to an Underlying Data Store
    • ObjectQuery<T>
      • Represents a Command to be Executed Against an Entity Data Model
    • Data Classes
      • Represent Entities
    • ObjectServices: Objects Over Entities
      • API for Programming Against Entity Data Models
    • Query: Two Approaches
      • LINQ: Language Integrated Query
      • Entity SQL
        • Text-Based Query
        • Query Builder Methods
    • 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