Synopses & Reviews
Ready to take advantage of LINQ with C# 3.0? This guide has the detail you need to grasp Microsoft's new querying technology, and concise explanations to help you learn it quickly. And once you begin to apply LINQ, the book serves as an on-the-job reference when you need immediate reminders.
All the examples in the LINQ Pocket Reference are preloaded into LINQPad, the highly praised utility that lets you work with LINQ interactively. Created by the authors and free to download, LINQPad will not only help you learn LINQ, it will have you thinking in LINQ.
This reference explains:
- LINQ's key concepts, such as deferred execution, iterator chaining, and type inference in lambda expressions
- The differences between local and interpreted queries
- C# 3.0's query syntax in detail-including multiple generators, joining, grouping, query continuations, and more
- Query syntax versus lambda syntax, and mixed syntax queries
- Composition and projection strategies for complex queries
- All of LINQ's 40-plus query operators
- How to write efficient LINQ to SQL queries
- How to build expression trees from scratch
- All of LINQ to XML's types and their advanced use
LINQ promises to be the locus of a thriving ecosystem for many years to come. This small book gives you a huge head start.
"The authors built a tool (LINQPad) that lets you experiment with LINQ interactively in a way that the designers of LINQ themselves don't support, and the tool has all kinds of wonderful features that LINQ, SQL and Regular Expression programmers alike will want to use regularly long after they've read the book."-Chris Sells, Connected Systems Program Manager, Microsoft
This guide has the detail needed to grasp Microsoft's new querying technology, and concise explanations to help users learn it quickly. For those already applying LINQ, the book serves as an on-the-job reference.
About the Author
Joseph Albahari is a core C# design architect at Egton Medical Information Systems, the largest primary healthcare software supplier in the UK. He has been developing large-scale enterprise applications on .NET and other platforms for more than 15 years, working in medical, telecommunication and education industries. Joseph specializes in writing custom components and controls, and has designed application component frameworks for three companies.
Ben Albahari is currently involved in the bioinformatics business. He was a Program Manager at Microsoft for 5 years, where he worked on several projects, including the .NET Compact Framework and ADO.NET.
He was the cofounder of Genamics, a provider of tools for C# and J++ programmers, as well as software for DNA and protein sequence analysis. He is a co-author of C# Essentials, the first C# book from O'Reilly, and of previous editions of C# in a Nutshell.
Table of Contents
Chapter 1: LINQ Pocket Reference; 1.1 Getting Started; 1.2 Lambda Queries; 1.3 Comprehension Queries; 1.4 Deferred Execution; 1.5 Subqueries; 1.6 Composition Strategies; 1.7 Projection Strategies; 1.8 Interpreted Queries; 1.9 LINQ to SQL; 1.10 Building Query Expressions; 1.11 Query Operator Overview; 1.12 Filtering; 1.13 Projecting; 1.14 Joining; 1.15 Ordering; 1.16 Grouping; 1.17 Set Operators; 1.18 Conversion Methods; 1.19 Element Operators; 1.20 Aggregation Methods; 1.21 Quantifiers; 1.22 Generation Methods; 1.23 LINQ to XML; 1.24 X-DOM Overview; 1.25 Instantiating an X-DOM; 1.26 Navigating/Querying an X-DOM; 1.27 Updating an X-DOM; 1.28 Working with Values; 1.29 Documents and Declarations; 1.30 Names and Namespaces; 1.31 Projecting into an X-DOM;