Browse / Computers
LINQ Unleashed 9780672329838

LINQ Unleashed

For C#

ISBN-10: 0672329832
ISBN-13: 9780672329838
PUBLISHER: Pearson Education
Also available at
Note: Not guaranteed to come with supplemental materials (access codes, CDs, DVDs)
Product Description: Foreword by Darryl Hogan, Architect Evangelist, Microsoft Corporation


Microsoft''s highly anticipated LINQ query technology makes it easy to retrieve any information programmatically from any data source, no matter where it comes from or how it''s stored. Using LINQ, developers can query objects, relational databases, XML documents, and ADO.NET datasets--and do it all directly from C# 3.0, leveraging the powerful capabilities of LINQ.


This is a definitive guide to getting real-world results with LINQ, using C# 3.0 and Visual Studio 2008. In LINQ Unleashed, Microsoft MVP Paul Kimmel covers every facet of LINQ programming, showing how LINQ can help you dramatically improve your productivity and build more reliable, maintainable applications.


Kimmel begins by reviewing the state-of-the-art C# programming techniques LINQ uses, including anonymous types, partial methods, and Lambda expressions. Next, using realistic examples and easy-to-adapt sample code, he details the most powerful new LINQ techniques for accessing objects, databases, and XML. You''ll gain a deep and practical understanding of how LINQ works "under the hood"--and learn how to do everything from selecting data through integrating XML with other data models.


  • Build efficient LINQ queries to .NET objects, SQL databases, and XML content
  • Utilize anonymous types to reduce design time, coding effort, and debugging time
  • Automatically generate .NET state machines with the new yield return construct
  • Master LINQ query syntax, operators, extension methods, sorting, grouping, aggregate and set operations, and more
  • Make the most of select--and use it in the business layer of your n-tier applications
  • Query relational data stored in Microsoft SQL Server
  • Use nullable types to eliminate unnecessary database access plumbing code
  • Use LINQ with ADO.NET 3.0 and Microsoft''s powerful new Entity Framework
  • Extract XML data without the hassles or complexity of XPath
  • Automatically construct XML from CSV files and other non-XML data
  • Query Active Directory by extending LINQ

Introductionnbsp; 1

Part Inbsp;nbsp;nbsp;nbsp; Getting Ready for LINQ

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 1nbsp;nbsp;nbsp;nbsp; Programming with Anonymous Types 5

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 2nbsp;nbsp;nbsp;nbsp; Using Compound Type Initialization nbsp;29

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 3nbsp;nbsp;nbsp;nbsp; Defining Extension and Partial Methodsnbsp; 61

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 4nbsp;nbsp;nbsp;nbsp; yield return: Using .NET''s State Machine Generatornbsp; 85

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 5nbsp;nbsp;nbsp;nbsp; Understanding Lambda Expressions and Closuresnbsp; 97

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 6nbsp;nbsp;nbsp;nbsp; Using Standard Query Operatorsnbsp; 121

Part IInbsp;nbsp;nbsp; LINQ for Objects

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 7nbsp;nbsp;nbsp;nbsp; Sorting and Grouping Queries 137

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 8nbsp;nbsp;nbsp;nbsp; Using Aggregate Operations 151

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 9nbsp;nbsp;nbsp;nbsp; Performing Set Operationsnbsp; 167

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 10nbsp;nbsp; Mastering Select and SelectManynbsp; 185

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 11nbsp;nbsp; Joining Query Results nbsp;211

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 12nbsp;nbsp; Querying Outlook and Active Directory nbsp;239

Part IIInbsp;nbsp; LINQ for Data

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 13nbsp;nbsp; Querying Relational Data with LINQ 265

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 14nbsp;nbsp; Creating Better Entities and Mapping Inheritance and Aggregation nbsp;289

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 15nbsp;nbsp; Joining Database Tables with LINQ Queries nbsp;309

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 16nbsp;nbsp; Updating Anonymous Relational Data nbsp;349

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 17nbsp;nbsp; Introducing ADO.NET 3.0 and the Entity Frameworknbsp; 383

Part IVnbsp; LINQ for XML

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 18nbsp;nbsp; Extracting Data from XML 415

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 19nbsp;nbsp; Comparing LINQ to XML with Other XML Technologiesnbsp; 437

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 20nbsp;nbsp; Constructing XML from Non-XML Datanbsp; 453

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 21nbsp;nbsp; Emitting XML with the XmlWriternbsp; 463

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 22nbsp;nbsp; Combining XML with Other Data Models nbsp;469

nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 23nbsp;nbsp; LINQ to XSD Supports Typed XML Programming nbsp;485


Additional Details

PAGES: 552
CATEGORY: Computers

21 Day Unconditional Guarantee

any book, any reason

Rent This Book Now:

Price guaranteed for 45:00 longer
Due May 15 $14.85
130 days (due Jul 6) $16.48
85 days (due May 22) $15.00
55 days (due Apr 22) $14.43
Select Your Own Date

Buy this book used:


List Price: $55.00
Your Savings:
Total Price:

REVIEWS for LINQ Unleashed

Select a star rating


1. How do textbook rentals work?
It’s simple. Begin by searching for your textbook by ISBN (10 or 13-digit number that can be found on the back cover of each book), title, author or keyword. Next select how long you would like to rent the book then add it to your cart. Repeat for each book you’re looking for. After completing the order we’ll ship them to you and you’ll also receive a prepaid mailer. Return your books in the mailer by your rental due date.
2. Is renting a textbook better than purchasing it?
We offer both! You can buy or rent the book through Campus Book Rentals. It’s up to you to decide which option best meets your educational needs.
3. How do I track my order?
Login to your account here, you’ll see your current rentals listed textbook rentals listed with a yellow box that says “track”. Click the box to view the tracking number. *Not all books will have a tracking number since they may be sent from one of our partners. Tracking numbers will be updated as they become available.
4. How do I return my books?
When you rent textbooks from Campus Book Rentals you’ll receive a prepaid mailer. When it’s nearing your due date you’ll place your books inside the mailer and take it to the nearest USPS drop box or Post Office. If you don’t receive a mailer you can print a return label from your account. Return shipping is prepaid so please use either of the two methods to ensure they arrive at the correct facility.
5. Can I write or highlight in my book?
Of course! Just remember that future students will rent the same book after you, so please be respectful.
6. How much money can renting my books save?
It depends on the book. Generally renting textbooks can save you up to 80% compared to a new textbook.
7. Are Campus Book Rentals’ books the same as my bookstore’s?
Yes! We only ship US edition textbooks, which are the same as your campus bookstore.
8. Do access codes or other supplements come with a textbook rental?
One time use access codes and other supplemental materials are NOT included with rental books and must be purchased separately.
9. What if I don’t return my rental?
If your book rental is not returned by the due date, your credit card will be charged a non-return fee, equal to the replacement value for the book.
10. Can I purchase my book after I rent it?
Certainty! You’re only charged the difference between what you already paid and the value of the book at the time you initially rented. Login to your account and choose to purchase your book and it’ll walk you through the checkout process.

Textbook Rentals

We know that textbook rentals are the best way currently to distribute high quality textbooks, and we want to have you on board! Join over a million students that have saved money by renting! Not only is it better for you, but when you return it that book can go on to help even more students access affordable education. We're confident we offer the best value in rentals, but if you're not a believer you can always return your book for a no questions asked refund within 21 days.

Why Choose Us?

1. Campus Book Rentals pioneered the idea of textbook rentals, making prices significantly cheaper for every student while still maintaining the highest quality. We've been at it since 2007 and the entire industry has had to adapt to keep up.

2. Though keeping prices low has always been the goal, we can boast an excellent support team that has helped thousands of students get the best value for their education. Chat with them at 855-200-0021 or use our chat box.

3. We practice what we preach. We routinely read our own textbooks to further our own education while at work. We know that only with a well-educated team of individuals can we continue to change the industry for the better.

Make A Difference

At Campus Book Rentals our company is guided by a single question, "How are we making education more affordable?" We know that getting a college education is quickly becoming a rite of passage for students and is becoming more important every year. In order to make education more attainable for the 99%, we started renting textbooks so students could avoid high purchase prices and buyback programs. We know it's a better way, and we're going to show everyone how to make a college education affordable again.