So if you have already bought C#3.0 in a nutshell from the same author, you don't need this at all.
Linq Pocket Reference (Pocket Reference (O'Reilly))
โ Scribed by Joseph Albahari, Ben Albahari
- Publisher
- O'Reilly Media
- Year
- 2008
- Tongue
- English
- Leaves
- 174
- Edition
- 1
- Category
- Library
No coin nor oath required. For personal study only.
โฆ Synopsis
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
Contents......Page 7
Getting Started......Page 13
Chaining Query Operators......Page 16
Composing Lambda Expressions......Page 18
Lambda expressions and Func signatures......Page 19
Lambda expressions and element typing......Page 20
Other Operators......Page 21
Comprehension Queries......Page 22
Iteration Variables......Page 24
Query Syntax Versus Lambda Syntax......Page 25
Mixed Syntax Queries......Page 26
Deferred Execution......Page 27
Reevaluation......Page 28
How Deferred Execution Works......Page 29
Chaining Decorators......Page 31
How Queries Are Executed......Page 32
Subqueries......Page 34
Progressive Query Building......Page 37
The into Keyword......Page 39
Wrapping Queries......Page 40
Anonymous Types......Page 42
The let Keyword......Page 44
Interpreted Queries......Page 45
How Interpreted Queries Work......Page 47
Execution......Page 48
AsEnumerable......Page 50
LINQ to SQL Entity Classes......Page 52
DataContext......Page 54
Associations......Page 57
Deferred Execution with LINQ to SQL......Page 59
DataLoadOptions......Page 60
Eager loading......Page 61
Updates......Page 62
Building Query Expressions......Page 64
Compiling expression trees......Page 65
AsQueryable......Page 66
Expression Trees......Page 67
The Expression DOM......Page 68
Query Operator Overview......Page 71
Filtering......Page 74
Overview......Page 75
Where in LINQ to SQL......Page 76
TakeWhile and SkipWhile......Page 77
Projecting......Page 78
Overview......Page 79
Select subqueries and object hierarchies......Page 80
Subqueries and joins in LINQ to SQL......Page 81
Projecting into concrete types......Page 83
SelectMany......Page 84
Overview......Page 85
Outer iteration variables......Page 87
Thinking in comprehension syntax......Page 88
Joining with SelectMany......Page 89
SelectMany in LINQ to SQL......Page 90
Outer joins with SelectMany......Page 92
Joining......Page 94
Overview......Page 95
Join......Page 96
Joining on multiple keys......Page 98
Joining in lambda syntax......Page 99
GroupJoin......Page 100
Flat outer joins......Page 101
Joining with lookups......Page 102
ThenBy, ThenByDescending arguments......Page 104
Overview......Page 105
IOrderedEnumerable and IOrderedQueryable......Page 106
Grouping......Page 107
Overview......Page 108
Custom equality comparers......Page 111
Intersect and Except......Page 112
OfType and Cast......Page 113
ToArray, ToList, ToDictionary, ToLookup......Page 115
Element Operators......Page 116
First, Last, Single......Page 117
ElementAt......Page 118
Count and LongCount......Page 119
Min and Max......Page 120
Sum and Average......Page 121
Aggregate......Page 122
Contains and Any......Page 123
Empty......Page 124
LINQ to XML......Page 125
Architectural Overview......Page 126
X-DOM Overview......Page 127
Loading and Parsing......Page 129
Instantiating an X-DOM......Page 130
Functional Construction......Page 131
Specifying Content......Page 132
Automatic Deep Cloning......Page 133
Child Node Navigation......Page 134
Retrieving elements......Page 135
Retrieving a single element......Page 137
Parent Navigation......Page 138
Peer Node Navigation......Page 139
Simple Value Updates......Page 140
Updating Child Nodes and Attributes......Page 141
Updating Through the Parent......Page 142
Removing a sequence of nodes or attributes......Page 143
Getting Values......Page 145
Values and Mixed Content Nodes......Page 147
XDocument......Page 148
XML Declarations......Page 151
Names and Namespaces......Page 152
Specifying Namespaces in the X-DOM......Page 154
The X-DOM and Default Namespaces......Page 155
Prefixes......Page 157
Projecting into an X-DOM......Page 159
Eliminating Empty Elements......Page 161
Streaming a Projection......Page 162
Transforming an X-DOM......Page 163
Index......Page 165
๐ SIMILAR VOLUMES
This little book is everything a pocket reference should be. grep and egrep are not hard to use, but there are quite a few valid combinations of options, and this book pretty much covers them all. If you want to find expressions in one or more files, this is the tool to use. It's easy to forget ever
Synopsis: At this point, when considering purchasing this book, I'd say get a real reference if you want to learn PHP, or if you need a big function reference off-line, then install the help that comes with PHP or just use php.net on-line. This book might be marginally okay for bathroom reading, b
As for the big brother book (C# 4.0 in a nutshell), this small one retains the best qualities of it. Concise and precise treatment, targeted and functional examples. There is only one chapter, composed of several subparagraphs. Fortunately there is a detailed index of 16 pages, so it's easy to find
This is a great little book. I have had three revisions of it and plan to get the next one when it is published. I keep it in my mini 10v running ubuntu linux (9.10) netbook's sleeve when I travel. Perfect little reference and easily worth the cost.