| help | account  


LINQ Pocket Reference
View Larger Image
Joseph Albahari, Ben Albahari
O'Reilly Media, Paperback, Published February 2008, 200 pages, ISBN 0596519249
List Price: $14.99
Our Price: $7.95
You Save: $7.04 (47% Off)


FREE Shipping on Orders over $40!*
Availability: In-Stock

Be the First to Write a Review and tell the world about this title!

People who purchase this book frequently purchase:

Books on similar topics, in best-seller order:Books from the same publisher, in best-seller order:

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

 

Table of Contents

Getting Started

Lambda Queries

Chaining Query Operators

Composing Lambda Expressions

Natural Ordering

Other Operators

Comprehension Queries

Iteration Variables

Query Syntax Versus SQL Syntax

Query Syntax Versus Lambda Syntax

Mixed Syntax Queries

Deferred Execution

Reevaluation

Outer Variables

How Deferred Execution Works

Chaining Decorators

How Queries Are Executed

Subqueries

Subqueries and Deferred Execution

Composition Strategies

Progressive Query Building

The into Keyword

Wrapping Queries

Projection Strategies

Object Initializers

Anonymous Types

The let Keyword

Interpreted Queries

How Interpreted Queries Work

AsEnumerable

LINQ to SQL

LINQ to SQL Entity Classes

DataContext

Automatic Entity Generation

Associations

Deferred Execution with LINQ to SQL

DataLoadOptions

Updates

Building Query Expressions

Delegates Versus Expression Trees

Expression Trees

Query Operator Overview

Filtering

Where

Take and Skip

TakeWhile and SkipWhile

Distinct

Projecting

Select

SelectMany

Joining

Join and GroupJoin

Ordering

OrderBy, OrderByDescending, ThenBy, ThenByDescending

Grouping

GroupBy

Set Operators

Concat and Union

Intersect and Except

Conversion Methods

OfType and Cast

ToArray, ToList, ToDictionary, ToLookup

AsEnumerable and AsQueryable

Element Operators

First, Last, Single

ElementAt

DefaultIfEmpty

Aggregation Methods

Count and LongCount

Min and Max

Sum and Average

Aggregate

Quantifiers

Contains and Any

All and SequenceEqual

Generation Methods

Empty

Range and Repeat

LINQ to XML

Architectural Overview

X-DOM Overview

Loading and Parsing

Saving and Serializing

Instantiating an X-DOM

Functional Construction

Specifying Content

Automatic Deep Cloning

Navigating/Querying an X-DOM

Child Node Navigation

Parent Navigation

Peer Node Navigation

Attribute Navigation

Updating an X-DOM

Simple Value Updates

Updating Child Nodes and Attributes

Updating Through the Parent

Working with Values

Setting Values

Getting Values

Values and Mixed Content Nodes

Automatic XText Concatenation

Documents and Declarations

XDocument

XML Declarations

Names and Namespaces

Specifying Namespaces in the X-DOM

The X-DOM and Default Namespaces

Prefixes

Projecting into an X-DOM

Eliminating Empty Elements

Streaming a Projection

Transforming an X-DOM

Index




Forgot your password?
FAQs
Shipping Options
Returns
Your Orders
Your Account