A lot of code examples in Chapter 8 are wrong, e.g., the GetThreads() in page 405, which is an exact copy of the same code in the previous edition, which uses SqlConnection instead of leveraging the entity framework. I have to refer to the download code (the C# version is also full of errors, and even with a lot of
VB code in it, e.g., forum.cs).
They must have been in a rush when they published this book.