LINQ: Language Integrated Query

LINQ: Language Integrated Query
复制标题

LINQ:语言集成查询

DOI:
--
复制
发表时间:
2010
期刊:
影响因子:
--
通讯作者:
T. Nash
T. Nash
中科院分区:
--
文献类型:
--
作者:
T. Nash

文献摘要

被引文献

相似文献

C风格语言(包括C#)本质上是命令式的,这意味着重点放在系统的状态上,并且随着时间的推移会对该状态进行更改。数据采集语言(如SQL)本质上是函数式的,这意味着重点放在操作上,在过程中很少或根本没有使用可变数据。LINQ弥合了命令式编程风格和函数式编程风格之间的差距。LINQ是一个巨大的主题,值得整本书专门介绍它,以及你可以用LINQ做什么。1有几个现成的LINQ实现:LINQ to Objects,LINQ to SQL,LINQ to Dataset,LINQ to Entities和LINQ to XML。我将把重点放在LINQ to Objects上,因为我将能够在不引入额外的层和技术的情况下获得LINQ消息。
C-style languages (including C#) are imperative in nature, meaning that the emphasis is placed on the state of the system, and changes are made to that state over time. Data-acquisition languages such as SQL are functional in nature, meaning that the emphasis is placed on the operation and there is little or no mutable data used during the process. LINQ bridges the gap between the imperative programming style and the functional programming style. LINQ is a huge topic that deserves entire books devoted to it and what you can do with LINQ.1 There are several implementations of LINQ readily available: LINQ to Objects, LINQ to SQL, LINQ to Dataset, LINQ to Entities, and LINQ to XML. I will be focusing on LINQ to Objects because I’ll be able to get the LINQ message across without having to incorporate extra layers and technologies.