[翻译]LINQ Project: Unified Language Features for Object and Relational Queries(1)
Lab 1: LINQ Project: Unified Language Features for Object and Relational Queries
实验1:Linq项目:对象和关系查询统一语言功能
This lab provides an introduction to the LINQ Project. The language integrated query framework for .NET (“LINQ”) is a set of language extensions to C# and
实验介绍LINQ项目。.NET(“LINQ”)完整查询语言框架是一套C#和Visual Basic统一编程方法的语言扩展,它为.NET框架提供针对对象,数据库和XML的完整查询
In this lab, you will see how LINQ features can be used against in-memory collections, XML documents, and connected databases. The lab ends with an optional exercise that looks at the various standard query operators available for data manipulation and extraction.
在实验里,你将了解多少LINQ功能可以被使用,依靠使用内存集合,XML文档和连接数据库。这些实验最终将由可选实验(着眼于用不同可用的标准查询操作执行数据操作和提取)结束
This lab makes extensive use of new language features provided in C# 3.0. When first introduced they are pointed out; however for a more in depth understanding of how these features work, refer to the C# 3.0 Language Specification Hands On Lab.
这些实验室使用C# 3.0的新语言功能实现。当首先介绍他们时必须指出;如果想深入的理解更多这些功能怎样工作请查阅《C# 3.0 Language Specification Hands On Lab》
Lab Objective
实验目标
Estimated time to complete this lab: 60 minutes这些实验的估计完成时间60分钟
The objective of this lab is to provide a clear understanding of the LINQ project. You will see how data manipulation can occur on objects in memory, XML files, datasets, and relational databases. The new LINQ APIs benefit from IntelliSense™ and full compile-time checking without resorting to string-based queries. This lab touches on basic LINQ technologies, along with database-specific LINQ to SQL, XML-specific LINQ to XML, and dataset-specific LINQ to DataSets. A brief look at query operators is also included.
提供这些实验的目的是更清楚地理解LINQ项目。你将了解哪些数据操作能使用内存对象,XML文件,dataset(数据集)和关系数据库。新LINQ API从IntelliSense™和无需采取基于字符串的全编译时检查查询中受益非浅。这些实验略微谈到基于LINQ技术,,随同SQL的数据库特征LINQ,XML的XML特征LINQ和DataSets的数据集特征LINQ。同样包含了简短的浏览查询操作
This lab uses the Northwind database and consists of the following exercises:
这些实验室用了Northwind数据库和以下练习组成:
LINQ to Objects: LINQ for In-Memory Collections LINQ to XML: LINQ for XML Documents LINQ to DataSets: LINQ for Dataset Objects LINQ to SQL: LINQ for Connected DatabasesUnderstanding the Standard Query Operators [Optional] |