買這商品的人也買了...
-
$850$723 -
$2,050$1,948 -
$299Facebook Application Development
-
$680$646 -
$299Flex 3 Cookbook: Code-Recipes, Tips, and Tricks for RIA Developers (Paperback)
-
$2,220$2,109 -
$2,100$1,995 -
$1,930$1,834 -
$2,120$2,014 -
$520$364 -
$550$468 -
$760$646 -
$700Professional Scrum Development with Microsoft Visual Studio 2012 (Paperback)
-
$958深度學習
-
$650$507 -
$398$299 -
$460$391 -
$420$332 -
$599$473 -
$800$680 -
$400$316 -
$780$616 -
$2,185Learning Blazor: Build Single-Page Apps with Webassembly and C# (Paperback)
-
$720$562 -
$880$695
商品描述
Microsoft’s highly anticipated LINQ query technology makes it easy to retrieve any information programmatically from any data source, no matter where it comes from or how it’s stored. Using LINQ, developers can query objects, relational databases, XML documents, and ADO.NET datasets--and do it all directly from C# 3.0, leveraging the powerful capabilities of LINQ.
This is a definitive guide to getting real-world results with LINQ, using C# 3.0 and Visual Studio 2008. In LINQ Unleashed, Microsoft MVP Paul Kimmel covers every facet of LINQ programming, showing how LINQ can help you dramatically improve your productivity and build more reliable, maintainable applications.
Kimmel begins by reviewing the state-of-the-art C# programming techniques LINQ uses, including anonymous types, partial methods, and Lambda expressions. Next, using realistic examples and easy-to-adapt sample code, he details the most powerful new LINQ techniques for accessing objects, databases, and XML. You’ll gain a deep and practical understanding of how LINQ works “under the hood”--and learn how to do everything from selecting data through integrating XML with other data models.
- Build efficient LINQ queries to .NET objects, SQL databases, and XML content
- Utilize anonymous types to reduce design time, coding effort, and debugging time
- Automatically generate .NET state machines with the new yield return construct
- Master LINQ query syntax, operators, extension methods, sorting, grouping, aggregate and set operations, and more
- Make the most of select--and use it in the business layer of your n-tier applications
- Query relational data stored in Microsoft SQL Server
- Use nullable types to eliminate unnecessary database access plumbing code
- Use LINQ with ADO.NET 3.0 and Microsoft’s powerful new Entity Framework
- Extract XML data without the hassles or complexity of XPath
- Automatically construct XML from CSV files and other non-XML data
- Query Active Directory by extending LINQ
Introduction 1
Part I Getting Ready for LINQ
1 Programming with Anonymous Types 5
2 Using Compound Type Initialization 29
3 Defining Extension and Partial Methods 61
4 yield return: Using .NET’s State Machine Generator 85
5 Understanding Lambda Expressions and Closures 97
6 Using Standard Query Operators 121
Part II LINQ for Objects
7 Sorting and Grouping Queries 137
8 Using Aggregate Operations 151
9 Performing Set Operations 167
10 Mastering Select and SelectMany 185
11 Joining Query Results 211
12 Querying Outlook and Active Directory 239
Part III LINQ for Data
13 Querying Relational Data with LINQ 265
14 Creating Better Entities and Mapping Inheritance and Aggregation 289
15 Joining Database Tables with LINQ Queries 309
16 Updating Anonymous Relational Data 349
17 Introducing ADO.NET 3.0 and the Entity Framework 383
Part IV LINQ for XML
18 Extracting Data from XML 415
19 Comparing LINQ to XML with Other XML Technologies 437
20 Constructing XML from Non-XML Data 453
21 Emitting XML with the XmlWriter 463
22 Combining XML with Other Data Models 469
23 LINQ to XSD Supports Typed XML Programming 485
Index
商品描述(中文翻譯)
前言 由 Darryl Hogan,架構傳道者,微軟公司
微軟備受期待的 LINQ 查詢技術使得從任何資料來源以程式化方式檢索任何資訊變得簡單,無論資料來自何處或以何種方式儲存。使用 LINQ,開發人員可以直接從 C# 3.0 查詢物件、關聯式資料庫、XML 文件和 ADO.NET 數據集,充分利用 LINQ 的強大功能。
這是一本關於如何使用 C# 3.0 和 Visual Studio 2008 取得實際結果的權威指南。在《LINQ Unleashed》中,微軟 MVP Paul Kimmel 涵蓋了 LINQ 程式設計的各個方面,展示了 LINQ 如何幫助您顯著提高生產力,並構建更可靠、可維護的應用程式。
Kimmel 首先回顧了 LINQ 使用的最先進的 C# 程式設計技術,包括匿名類型、部分方法和 Lambda 表達式。接下來,通過現實的範例和易於調整的範例程式碼,他詳細介紹了訪問物件、資料庫和 XML 的最強大新 LINQ 技術。您將深入了解 LINQ 如何在“底層”運作,並學習如何從選擇資料到將 XML 與其他資料模型整合的所有操作。
- 建立高效的 LINQ 查詢以訪問 .NET 物件、SQL 資料庫和 XML 內容
- 利用匿名類型來減少設計時間、編碼工作和除錯時間
- 使用新的 yield return 構造自動生成 .NET 狀態機
- 精通 LINQ 查詢語法、運算子、擴展方法、排序、分組、聚合和集合操作等
- 充分利用 select,並在您的多層應用程式的業務層中使用它
- 查詢儲存在 Microsoft SQL Server 中的關聯資料
- 使用可為空類型來消除不必要的資料庫訪問管道程式碼
- 將 LINQ 與 ADO.NET 3.0 和微軟強大的新 Entity Framework 一起使用
- 提取 XML 資料而不必處理 XPath 的麻煩或複雜性
- 自動從 CSV 文件和其他非 XML 資料構建 XML
- 通過擴展 LINQ 查詢 Active Directory
引言 1
**第一部分 準備使用 LINQ**
1 程式設計與匿名類型 5
2 使用複合型別初始化 29
3 定義擴展和部分方法 61
4 **yield return**:使用 .NET 的狀態機生成器 85
5 理解 Lambda 表達式和閉包 97
6 使用標準查詢運算子 121
**第二部分 LINQ 用於物件**
7 排序和分組查詢 137
8 使用聚合操作 151
9 執行集合操作 167
10 精通 **Select** 和 **SelectMany** 185
11 連接查詢結果 211
12 查詢 Outlook 和 Active Directory 239
**第三部分 LINQ 用於資料**
13 使用 LINQ 查詢關聯資料 265
14 創建更好的實體並映射繼承和聚合 289
15 使用 LINQ 查詢連接資料庫表 309
16 更新匿名關聯資料 349
17 介紹 ADO.NET 3.0 和 Entity Framework 383
**第四部分 LINQ 用於 XML**
18 從 XML 中提取資料 415
19 將 LINQ to XML 與其他 XML 技術進行比較 437
20 從非 XML 資料構建 XML 453
21 使用 **XmlWriter** 發出 XML 463
22 將 XML 與其他資料模型結合 469
23 LINQ to XSD 支援類型化 XML 程式設計 485
索引