Vous êtes sur la page 1sur 2

Language Integrated Query (LINQ)

TOP NEW FEATURES


 Write queries against in-memory
Microsoft® SQL Server™ 2008 LINQ is an exciting
collections and other queryable evolution in data programming that enables
sources in any .NET language developers to build queries over data directly
using LINQ.
from within any .NET-based programming
 Write data access code directly
against a Microsoft SQL Server
language. LINQ to Entities, LINQ to DataSet,
database by using LINQ to SQL. LINQ to SQL, and LINQ to XML are key
 Write data access code for XML implementations of this powerful technology.
data by using LINQ to XML.
http://www.microsoft.com/sqlserver/2008/en/us/linq.aspx
 Write common data access code
across different data providers
and storage schemas by using SIMPLICITY PRODUCTIVITY
LINQ to Entities. Simplify your data access code and Increase productivity and reduce
 Write rich queries against data in enhance the maintainability of your run-time errors in your applications
a Microsoft DataSet by using applications by using LINQ. Express by using strongly typed objects
LINQ to DataSet traversal, filter, and projection instead of embedded SQL query
operations declaratively by using syntax.
any .NET-based programming
language with LINQ’s set of general Optimize development efforts
purpose query operators. Become more productive and
optimize the overall application
Query data in any .NET development effort by using a single
programming language consistent query language for all
Write queries by using LINQ in the aspects of the application.
programming language of your
choice instead of learning the SQL Reduce bugs and errors
dialect native to your data source. Work with strongly typed CLR
objects that reduce run-time errors
var customers = from c in in applications. Identify query-
Customers related coding errors at compile time
where c.City == "London" and reduce the debugging effort by
using strongly typed variables.
select c;
Be more productive with
.NET language support
Microsoft Visual Studio
Use strongly typed objects in Maximize developer efficiency when
your data access code writing code that includes strongly
Query against strongly typed data typed data objects and take full
objects easily. Write data access advantage of the productivity
code in the same object-oriented enhancing capabilities of Visual
®
manner used for the rest of your Studio , such as the object browser
®.
application. and IntelliSense

Language Integrated Query (LINQ)


 LINQ to DataSet to work with New in Visual Studio 2008 SP1:
existing DataSet functionality Connect to SQL Server 2008 and
use the new SLQ 2008 data types
such as Date, DateTime2,
DateTimeOffset, Time, and
FileStream.

LINQ to SQL: Optimize


SQL Server client development
Rapidly build client applications
LINQ in Visual Studio directly against Microsoft SQL
Server storage schemas. Work with
FLEXIBILITY strongly typed objects that are
Access data in a wide range of data mapped directly to the underlying
database schema.
stores while using consistent LINQ LINQ implementations
syntax. Easily adapt to the needs of New in Visual Studio 2008 SP1:
a particular application scenario by LINQ to Entities: Design flexible Connect to SQL Server 2008 and
taking advantage of several data mappings use the new SLQ 2008 Data types
source-specific implementations of Build enterprise-grade applications such as Date, DateTime2,
LINQ to query various types of data. using strongly typed objects DateTimeOffset, Time, and
Use LINQ with any data source mapped to different data sources FileStream.
including SQL Server and third-party
Use whichever implementation of LINQ to XML: Work with XML data
databases. Use a common set of
LINQ is designed for your scenario: in a familiar way
business objects that may differ
 LINQ to SQL for objects mapped from, and evolve independently of, Use LINQ to XML to query strongly
directly to Microsoft SQL Server your database storage schema, typed XML objects that represent
database schemas using flexible mapping support in XML data. LINQ to XML provides a
 LINQ to XML for XML data the ADO.NET Entity Framework. comprehensive in-memory XML
Write one set of code to access data programming API that enables you
 LINQ to Entities for entity objects
from a variety of data sources and to work with XML data in a familiar
mapped to ADO.NET Data
schemas that can be interchanged way.
Providers
or evolved without changing the
application.

For more information about LINQ, visit http://msdn.microsoft.com/en-us/data/cc299380.aspx. For the latest developer news and more information on
Microsoft’s broad range of resources for developers, including support programs, events, training, and the MSDN Library Online, visit MSDN Online at
http://msdn.microsoft.com/.

This data sheet is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.
The example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious. No association with any real
company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred. (Use this only if fictitious content appears.)
0308 Part No. 098-00000 (color)
Part No. 098-00000 (black and white)