LINQ Unleashed: for C# (Volume 1)

4.4 avg rating
( 15 ratings by Goodreads )
 
9780672329838: LINQ Unleashed: for C# (Volume 1)
View all copies of this ISBN edition:
 
 

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

Introduction  1

Part I     Getting Ready for LINQ

       1     Programming with Anonymous Types 5

       2     Using Compound Type Initialization  29

       3     Defining Extension and Partial Methods  61

       4     yield return: Using .NET’s State Machine Generator  85

       5     Understanding Lambda Expressions and Closures  97

       6     Using Standard Query Operators  121

Part II    LINQ for Objects

       7     Sorting and Grouping Queries 137

       8     Using Aggregate Operations 151

       9     Performing Set Operations  167

       10   Mastering Select and SelectMany  185

       11   Joining Query Results  211

       12   Querying Outlook and Active Directory  239

Part III   LINQ for Data

       13   Querying Relational Data with LINQ 265

       14   Creating Better Entities and Mapping Inheritance and Aggregation  289

       15   Joining Database Tables with LINQ Queries  309

       16   Updating Anonymous Relational Data  349

       17   Introducing ADO.NET 3.0 and the Entity Framework  383

Part IV  LINQ for XML

       18   Extracting Data from XML 415

       19   Comparing LINQ to XML with Other XML Technologies  437

       20   Constructing XML from Non-XML Data  453

       21   Emitting XML with the XmlWriter  463

       22   Combining XML with Other Data Models  469

       23   LINQ to XSD Supports Typed XML Programming  485

Index

"synopsis" may belong to another edition of this title.

About the Author:

Paul Kimmel is a four-time Microsoft MVP, the author of over a dozen books on object oriented programming and UML, including three books on Microsoft .NET, a columnist for codeguru.com, developer.com, informit.com, devsource.com, and devx.com, a cofounder of the Greater Lansing Area .NET Users Group (glugnet.org, East Lansing and Flint), a full-time software developer, and sometimes pilot. Paul still lives and works in the greater Lansing, Michigan, area (and hasn’t given up on the economy). After 15 years of independent consulting, Paul now works for EDS as an application architect.

Excerpt. Reprinted by permission. All rights reserved.:

Introduction

Introduction

By the time you are holding this book in your hands, I will have 30 years in since the first time I wrote some code. That code was ROM-BASIC on a TRS-80 in Washington grammar school in Owosso, Michigan, and I was in the fifth grade. Making the "tank" slide back and forth shooting blips across the screen was neat. Changing the code to change blip speeds and numbers of targets was exhilarating. Three decades later and I get more excited each passing year. There are great technologies on the horizon like Microsoft Surface, Popfly, and LINQ. This book is about LINQ, or Language INtegrated Query.

LINQ is a SQL-like language for C#. When I first saw it, I didn't like it. My first impression was that someone had glommed on a bastardization of C# and it was ugly like SQL can get. I didn't like it because I didn't understand it. However, I gave LINQ a second chance (as I want you to do) and discovered that LINQ is thoroughly integrated, tremendously powerful, and almost as much fun as a Tesla Roadster or doing hammerheads in an Extra 300L.

The query capabilities of LINQ are extended to objects, SQL, DataSets, XML, XSD, entities, and can be extended to other providers like Active Directory or SharePoint. This means that you can write queries—that are similar in syntax—against objects, data, XML, XSD, entities, or Active Directory (with a little work) much like you would a SQL query in a database. And, LINQ is actually engineered artfully and brilliantly on top of generics as well as some new features in .NET 3.5, such as extension methods, anonymous types, and Lambda Expressions. Another very important characteristic of LINQ is that it clearly demonstrates Microsoft's willingness to innovate and take the best of existing technologies like Lambda Calculus—invented in the 1930s—and if it's good or great, incorporate these elements into the tools and languages we love.

LINQ and its underpinnings are powerful and challenging, and in this book you will get what you need to know to completely understand all that makes LINQ work and begin using it immediately. You will learn about anonymous methods, extension methods, Lambda Expressions, state machines, how generics and the CodeDOM play a big role in powerful tools like LINQ, and writing LINQ queries and why you will want to do it in the bigger, grander scheme of things. You will also learn how to save a ton of time and effort by not hard-coding those elements that you will no longer need or want to hard-code, and you will have a better grasp of how LINQ fits into n-tier architectures without breaking guidelines that have helped you succeed to date.

Brought to you by a four-time Microsoft MVP and columnist for over a decade, LINQ Unleashed for C# will teach you everything you need to know about LINQ and .NET 3.5 features and how to be more productive and have more fun than ever before.

Conventions Used in This Book

The following typographic conventions are used in this book:

Code lines, commands, statements, variables, and text you see onscreen appear in a monospace typeface.

Occasionally in listings bold is used to draw attention to the snippet of code being discussed.

Placeholders in syntax descriptions appear in an italic monospace typeface. You replace the placeholder with the actual filename, parameter, or whatever element it represents.

Italics highlight technical terms when they're being defined.

A code-continuation icon is used before a line of code that is really a continuation of the preceding line. Sometimes a line of code is too long to fit as a single line on the page. If you see before a line of code, remember that it's part of the line immediately above it.

The book also contains Notes, Tips, and Cautions to help you spot important or useful information more quickly.


© Copyright Pearson Education. All rights reserved.

"About this title" may belong to another edition of this title.

Top Search Results from the AbeBooks Marketplace

International Edition
International Edition

1.

Kimmel
ISBN 10: 0672329832 ISBN 13: 9780672329838
New Paperback Quantity Available: 5
International Edition
Seller:
PRIORITY BOOKS
(Springfield, VA, U.S.A.)
Rating
[?]

Book Description Paperback. Condition: New. Softcover Book, New Condition, Fast Shipping. Ready in Stock. 1st Edition. [Please Read Carefully Before Buying], This Is An International Edition. Printed In Black and White. 552 pages, Book Cover And ISBN No May Be Different From US Edition. Restricted Sales Disclaimer Wordings Not For Sales In USA And Canada May Be Printed On The Cover Of The Book. Standard Shipping 7-14 Business Days. Expedited Shiping 4-8 Business Days. ***WE DO NOT ENTERTAIN BULK ORDERS.*** The Books May Be Ship From Overseas For Inventory Purpose. Seller Inventory # 397634

More information about this seller | Contact this seller

Buy New
US$ 22.22
Convert currency

Add to Basket

Shipping: US$ 3.99
Within U.S.A.
Destination, rates & speeds
International Edition
International Edition

2.

Kimmel
ISBN 10: 0672329832 ISBN 13: 9780672329838
New Paperback First Edition Quantity Available: 2
International Edition
Seller:
ZerichSpace
(Antioch, CA, U.S.A.)
Rating
[?]

Book Description Paperback. Condition: New. New condition. Softcover book, 1st Edition. (Read Description Before Buying), This is an international Edition. Black and White Book. ISBN or covers May Be Different From US Edition. Book may have Restricted Sales Disclaimer Wordings printed on cover. Books May Be Shipped From Overseas as per stock status. Seller Inventory # 757557

More information about this seller | Contact this seller

Buy New
US$ 22.25
Convert currency

Add to Basket

Shipping: US$ 3.99
Within U.S.A.
Destination, rates & speeds
International Edition
International Edition

3.

Kimmel
ISBN 10: 0672329832 ISBN 13: 9780672329838
New Paperback Quantity Available: 1
International Edition
Seller:
Nick Book House
(Fresno, CA, U.S.A.)
Rating
[?]

Book Description Paperback. Condition: New. New, Softcover International Edition, Printed in Black and White, Different ISBN, Same Content As US edition, Book Cover may be Different, in English Language. Seller Inventory # 14729

More information about this seller | Contact this seller

Buy New
US$ 22.32
Convert currency

Add to Basket

Shipping: US$ 3.99
Within U.S.A.
Destination, rates & speeds

4.

Paul Kimmel
Published by Pearson Education (2008)
ISBN 10: 0672329832 ISBN 13: 9780672329838
New Quantity Available: > 20
Print on Demand
Seller:
Pbshop
(Wood Dale, IL, U.S.A.)
Rating
[?]

Book Description Pearson Education, 2008. PAP. Condition: New. New Book. Shipped from US within 10 to 14 business days. THIS BOOK IS PRINTED ON DEMAND. Established seller since 2000. Seller Inventory # IQ-9780672329838

More information about this seller | Contact this seller

Buy New
US$ 33.27
Convert currency

Add to Basket

Shipping: US$ 3.99
Within U.S.A.
Destination, rates & speeds

5.

Kimmel, Paul
Published by Prentice Hall
ISBN 10: 0672329832 ISBN 13: 9780672329838
New Quantity Available: > 20
Seller:
INDOO
(Avenel, NJ, U.S.A.)
Rating
[?]

Book Description Prentice Hall. Condition: New. Brand New. Seller Inventory # 0672329832

More information about this seller | Contact this seller

Buy New
US$ 34.33
Convert currency

Add to Basket

Shipping: US$ 3.60
Within U.S.A.
Destination, rates & speeds

6.

Kimmel, Paul
Published by Sams Publishing 6/1/2008 (2008)
ISBN 10: 0672329832 ISBN 13: 9780672329838
New Paperback or Softback Quantity Available: 10
Seller:
BargainBookStores
(Grand Rapids, MI, U.S.A.)
Rating
[?]

Book Description Sams Publishing 6/1/2008, 2008. Paperback or Softback. Condition: New. Linq Unleashed: For C#. Book. Seller Inventory # BBS-9780672329838

More information about this seller | Contact this seller

Buy New
US$ 40.57
Convert currency

Add to Basket

Shipping: FREE
Within U.S.A.
Destination, rates & speeds

7.

Kimmel, Paul
Published by Sams Publishing
ISBN 10: 0672329832 ISBN 13: 9780672329838
New PAPERBACK Quantity Available: 15
Seller:
Lakeside Books
(Benton Harbor, MI, U.S.A.)
Rating
[?]

Book Description Sams Publishing. PAPERBACK. Condition: New. 0672329832 Brand New Direct from the Publisher! Not overstocks or marked up remainders! Ships in a sturdy cardboard container with tracking!. Seller Inventory # OTF-9780672329838

More information about this seller | Contact this seller

Buy New
US$ 36.85
Convert currency

Add to Basket

Shipping: US$ 3.99
Within U.S.A.
Destination, rates & speeds

8.

Kimmel, Paul
Published by Sams Publishing (2018)
ISBN 10: 0672329832 ISBN 13: 9780672329838
New Paperback Quantity Available: > 20
Print on Demand
Seller:
Murray Media
(North Miami Beach, FL, U.S.A.)
Rating
[?]

Book Description Sams Publishing, 2018. Paperback. Condition: New. Never used! This item is printed on demand. Seller Inventory # 0672329832

More information about this seller | Contact this seller

Buy New
US$ 41.73
Convert currency

Add to Basket

Shipping: FREE
Within U.S.A.
Destination, rates & speeds

9.

Paul Kimmel
Published by Sams Publishing (2008)
ISBN 10: 0672329832 ISBN 13: 9780672329838
New Paperback Quantity Available: 1
Seller:
Ergodebooks
(RICHMOND, TX, U.S.A.)
Rating
[?]

Book Description Sams Publishing, 2008. Paperback. Condition: New. 1. Seller Inventory # DADAX0672329832

More information about this seller | Contact this seller

Buy New
US$ 39.26
Convert currency

Add to Basket

Shipping: US$ 3.99
Within U.S.A.
Destination, rates & speeds

10.

Paul Kimmel
Published by Pearson Education (US), United States (2008)
ISBN 10: 0672329832 ISBN 13: 9780672329838
New Paperback Quantity Available: 10
Print on Demand
Seller:
Book Depository International
(London, United Kingdom)
Rating
[?]

Book Description Pearson Education (US), United States, 2008. Paperback. Condition: New. Original. Language: English . Brand New Book ***** Print on Demand *****. 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 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 objects, SQL databases, and XML content Utilize anonymous types to reduce design time, coding effort, and debugging time Automatically generate 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 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 LINQIntroduction 1Part I Getting Ready for LINQ 1 Programming with Anonymous Types 5 2 Using Compound Type Initialization 29 3 Defining Extension and Partial Methods 61 4 yield return: Using s State Machine Generator 85 5 Understanding Lambda Expressions and Closures 97 6 Using Standard Query Operators 121Part II LINQ for Objects 7 Sorting and Grouping Queries 137 8 Using Aggregate Operations 151 9 Performing Set Operations 167 10 Mastering Select and SelectMany 185 11 Joining Query Results 211 12 Querying Outlook and Active Directory 239Part III LINQ for Data 13 Querying Relational Data with LINQ 265 14 Creating Better Entities and Mapping Inheritance and Aggregation 289 15 Joining Database Tables with LINQ Queries 309 16 Updating Anonymous Relational Data 349 17 Introducing 3.0 and the Entity Framework 383Part IV LINQ for XML 18 Extracting Data from XML 415 19 Comparing LINQ to XML with Other XML Technologies 437 20 Constructing XML from Non-XML Data 453 21 Emitting XML with the XmlWriter 463 22 Combining XML with Other Data Models 469 23 LINQ to XSD Supports Typed XML Programming 485Index. Seller Inventory # APC9780672329838

More information about this seller | Contact this seller

Buy New
US$ 46.98
Convert currency

Add to Basket

Shipping: FREE
From United Kingdom to U.S.A.
Destination, rates & speeds

There are more copies of this book

View all search results for this book