LINQ in Visual Studio 2008

4,707 views
4,563 views

Published on

LINQ in Visual Studio 2008

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,707
On SlideShare
0
From Embeds
0
Number of Embeds
65
Actions
Shares
0
Downloads
245
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide
  • LINQ in Visual Studio 2008

    1. 1. Language Integrated Query Mike Taulty Developer & Platform Group Microsoft Ltd [email_address] http://www.mtaulty.com
    2. 2. Agenda <ul><li>Why LINQ? </li></ul><ul><li>How are query capabilities added to the languages? </li></ul><ul><li>What is LINQ enabled in VS2008 & Fx 3.5? </li></ul><ul><li>What is LINQ enabled after VS2008? </li></ul>
    3. 3. Why do we need LINQ? My Code “ API”  SQL XML Query As String Loosely typed result Objects
    4. 4. Language Integrated Query
    5. 5. LINQ brings us closer to data
    6. 6. LINQ in the Languages <ul><li>Many new language features in VB9 & C# 3 </li></ul>VB9 XML Literals Relaxed Delegates C# 3.0 Extension Methods Object Initialisers Anonymous Types Implicit Typing Lambdas Collection Initialisers Partial Methods Automatic Properties
    7. 7. LINQ in the Languages <ul><li>Some are enablers for LINQ </li></ul>VB9 C# 3.0 Collection Initialisers Partial Methods Automatic Properties
    8. 8. LINQ Language Features
    9. 9. Query Pattern -> Language Features
    10. 10. Query Pattern -> Language Features <ul><li>Compiler looks for extension methods which extend </li></ul>IEnumerable<T> IQueryable<T>
    11. 11. IEnumerable<T> & IQueryable<T> <ul><li>IEnumerable – query executed piece by piece </li></ul><ul><li>IQueryable – query executed in one go </li></ul>where select Capture & Execute Execute Execute where select
    12. 12. LINQ in VS2008 & Fx 3.5
    13. 13. LINQ to SQL, XML and DataSet
    14. 14. Beyond VS 2008 – ADO.NET V3.0 DataStore (SQL, Oracle, etc) ADO.NET Provider (e.g. SqlClient, OracleClient, etc) ADO.NET V2.0 ADO.NET Entity Provider (EntityClient) Conceptual Data Model Query with LINQ to Entities, Entity SQL ADO.NET V3.0 & Entity Framework
    15. 15. LINQ to Entities
    16. 16. Summary <ul><li>LINQ plumbed into VB9 and C#3.0 Languages </li></ul><ul><ul><li>Lots of other language features too </li></ul></ul><ul><li>LINQ enabled in .NET Framework V3.5 </li></ul><ul><ul><li>Objects, SQL, XML, DataSet </li></ul></ul><ul><li>LINQ enabled post .NET Framework V3.5 </li></ul><ul><ul><li>Entities </li></ul></ul><ul><ul><li>... </li></ul></ul>
    17. 17. Resources <ul><li>http://msdn.microsoft.com/vstudio </li></ul><ul><li>MSDN LINQ Developer Centre </li></ul><ul><ul><li>http://tinyurl.com/3e2qpo </li></ul></ul><ul><li>ADO.NET Team Blog </li></ul><ul><ul><li>http://blogs.msdn.com/adonet </li></ul></ul>
    18. 18. MSDN in the UK <ul><li>Visit http://msdn.co.uk </li></ul><ul><ul><li>Newsletter </li></ul></ul><ul><ul><li>Events </li></ul></ul><ul><ul><li>Nugget Videos </li></ul></ul><ul><ul><li>Blogs </li></ul></ul>

    ×