Share via


LINQ to ADO.NET (pagina portale)

Aggiornamento: novembre 2007

LINQ to ADO.NET consente di eseguire una query su un oggetto enumerabile in ADO.NET utilizzando il modello di programmazione LINQ (Language-Integrated Query).

Nota:

La documentazione di LINQ to ADO.NET si trova nella sezione ADO.NET di .NET Framework SDK: LINQ e ADO.NET.

There are three separate ADO.NET LINQ (Language-Integrated Query) technologies: LINQ to DataSet, LINQ to SQL, and LINQ to Entities. LINQ to DataSet provides richer, optimized querying over the DataSet, LINQ to SQL enables you to directly query SQL Server database schemas, and LINQ to Entities allows you to query an Entity Data Model.

Da LINQ a DataSet

DataSet è uno dei componenti maggiormente utilizzati in ADO.NET ed è un elemento principale del modello di programmazione disconnesso sul quale si basa ADO.NET. Despite this prominence, however, the DataSet has limited query capabilities. 

LINQ to DataSet consente di compilare funzionalità di query più complesse in DataSet utilizzando le stesse funzionalità di query disponibili per molte altre origini dati.

Per ulteriori informazioni, vedere LINQ to DataSet.

LINQ to SQL

LINQ to SQL provides a run-time infrastructure for managing relational data as objects. In LINQ to SQL, the data model of a relational database is mapped to an object model expressed in the programming language of the developer. Quando viene eseguita l'applicazione, LINQ to SQL converte in SQL le query LINQ (Language Integrated Query) nel modello a oggetti e le invia al database per l'esecuzione. Quando il database restituisce i risultati, LINQ to SQL li converte di nuovo in oggetti che è possibile modificare.

LINQ to SQL includes support for stored procedures and user-defined functions in the database, and for inheritance in the object model. 

Per ulteriori informazioni, vedere LINQ to SQL.

LINQ to Entities

Through the Entity Data Model, relational data is exposed as objects in the .NET environment. This makes the object layer an ideal target for LINQ support, allowing developers to formulate queries against the database from the language used to build the business logic. This capability is known as LINQ to Entities. See LINQ to Entities for more information.

Vedere anche

Concetti

LINQ e ADO.NET

Altre risorse

LINQ (Language-Integrated Query)