LINQ in Visual Studio 2008
Upcoming SlideShare
Loading in...5
×
 

LINQ in Visual Studio 2008

on

  • 5,048 views

LINQ in Visual Studio 2008

LINQ in Visual Studio 2008

Statistics

Views

Total Views
5,048
Slideshare-icon Views on SlideShare
4,988
Embed Views
60

Actions

Likes
2
Downloads
237
Comments
0

2 Embeds 60

http://blogs.msdn.com 35
http://www.slideshare.net 25

Accessibility

Categories

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.

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

LINQ in Visual Studio 2008 LINQ in Visual Studio 2008 Presentation Transcript

  • Language Integrated Query Mike Taulty Developer & Platform Group Microsoft Ltd [email_address] http://www.mtaulty.com
  • Agenda
    • Why LINQ?
    • How are query capabilities added to the languages?
    • What is LINQ enabled in VS2008 & Fx 3.5?
    • What is LINQ enabled after VS2008?
  • Why do we need LINQ? My Code “ API”  SQL XML Query As String Loosely typed result Objects
  • Language Integrated Query
  • LINQ brings us closer to data
  • LINQ in the Languages
    • Many new language features in VB9 & C# 3
    VB9 XML Literals Relaxed Delegates C# 3.0 Extension Methods Object Initialisers Anonymous Types Implicit Typing Lambdas Collection Initialisers Partial Methods Automatic Properties
  • LINQ in the Languages
    • Some are enablers for LINQ
    VB9 C# 3.0 Collection Initialisers Partial Methods Automatic Properties
  • LINQ Language Features
  • Query Pattern -> Language Features
  • Query Pattern -> Language Features
    • Compiler looks for extension methods which extend
    IEnumerable<T> IQueryable<T>
  • IEnumerable<T> & IQueryable<T>
    • IEnumerable – query executed piece by piece
    • IQueryable – query executed in one go
    where select Capture & Execute Execute Execute where select
  • LINQ in VS2008 & Fx 3.5
  • LINQ to SQL, XML and DataSet
  • 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
  • LINQ to Entities
  • Summary
    • LINQ plumbed into VB9 and C#3.0 Languages
      • Lots of other language features too
    • LINQ enabled in .NET Framework V3.5
      • Objects, SQL, XML, DataSet
    • LINQ enabled post .NET Framework V3.5
      • Entities
      • ...
  • Resources
    • http://msdn.microsoft.com/vstudio
    • MSDN LINQ Developer Centre
      • http://tinyurl.com/3e2qpo
    • ADO.NET Team Blog
      • http://blogs.msdn.com/adonet
  • MSDN in the UK
    • Visit http://msdn.co.uk
      • Newsletter
      • Events
      • Nugget Videos
      • Blogs
  •