Errata

LINQ Pocket Reference

Errata for LINQ Pocket Reference

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
PDF Page 4
1st paragraph

It says "Here?s the preceding query expressed in comprehension syntax:".
The preceding query filters on Length, not Contains.

curtisw  Aug 25, 2011 
Printed Page 8
First example below 3rd paragraph

What is:
delegate TResult Func<T>();
should be
delegate TResult Func<TResult>();

See: http://msdn.microsoft.com/en-us/library/bb534960.aspx

I pondered whether I should label it serious,
but then I remembered how much time
I struggled with the error before I resolved it.

Andrew J. McCauley  Mar 24, 2012 
Printed Page 14
2nd paragraph from bottom

Paragraph reads:

For example:
int count = (from name in names
where n.contains ("a")
select name
).Count();

The iteration variable given after "from" is "name" and yet "n" is used in the where clause.

Dave Black  Jan 22, 2018 
PDF Page 17
3rd from bottom of page

Paragraph states:

Without the temporary variable, the query will use the most recent value of vowel ("u") on each successive filter, so only the "u" characters will be removed.

This paragraph refers to the example code above it. I have tried the example code with and without the temporary variable that it says is required and I find that the results are identical.

Dave Black  Jan 22, 2018 
Printed Page 51
United Kingdom

The explanation of the example states:

"In this example, LINQ to SQL automatically writes 100 into the CustomerID column of each of the new purchases."

In the example the customer ID is 1, not 100, which is the ID of the first purchase. This is the number that will be written to each of the new purchase rows.

Andy Marshall  Feb 20, 2015