Download presentation
Presentation is loading. Please wait.
Published bySherilyn Scarlett Miller Modified over 8 years ago
1
Language Integrated Query Mike Taulty Developer & Platform Group Microsoft Ltd Mike.Taulty@microsoft.com http://www.mtaulty.com
2
Agenda Why do we want LINQ? How are query capabilities added to the languages? What is LINQ enabled in VS2008 & Fx 3.5? What is LINQ enabled after VS2008?
3
Why do we need LINQ? My Code “API” SQL XML Query As String Loosely typed result Objects
4
Language Syntax for Querying
5
LINQ brings us closer to data
6
VB9 LINQ in the Languages Many new language features in VB9 & C# 3 XML Literals Relaxed Delegates C# 3.0 Extension Methods Object Initialisers Anonymous Types Implicit Typing Lambdas Collection Initialisers Partial Methods
7
VB9 LINQ in the Languages Some are enablers for LINQ C# 3.0 Collection Initialisers XML Literals Relaxed Delegates Partial Methods
8
LINQ Language Features
9
Query Pattern -> Language Features
10
Compiler looks for extension methods which extend IEnumerable IQueryable
11
IEnumerable & IQueryable IEnumerable – query executed piece by piece IQueryable – query executed in one go where select Capture & Execute Execute where select
12
LINQ in VS2008 & Fx 3.5 LINQ Objects (IE) XML (IE) SQL (IQ) DataSet (IE)
13
LINQ to SQL, XML and DataSet
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 Mapping
15
LINQ to Entities
16
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...
17
Resources http://msdn.microsoft.com/vstudio MSDN LINQ Developer Centre http://tinyurl.com/3e2qpo ADO.NET Team Blog http://blogs.msdn.com/adonet
18
MSDN in the UK Visit http://msdn.co.ukhttp://msdn.co.uk Newsletter Events Nugget Videos Blogs
19
© 2007 Microsoft Ltd. 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.
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.