Introduction to LINQ Queries (C#)

来源:互联网 发布:产品展示软件 编辑:程序博客网 时间:2024/06/06 19:46

http://msdn.microsoft.com/en-us/library/bb397906.aspx

 

A query is an expression that retrieves data from a data source. Queries are usually expressed in a specialized query language. Different languages have been developed over time for the various types of data sources, for example SQL for relational databases and XQuery for XML. Therefore, developers have had to learn a new query language for each type of data source or data format that they must support. LINQ simplifies this situation by offering a consistent model for working with data across various kinds of data sources and formats. In a LINQ query, you are always working with objects. You use the same basic coding patterns to query and transform data in XML documents, SQL databases, ADO.NET Datasets, .NET collections, and any other format for which a LINQ provider is available.

原创粉丝点击