Murach's ADO.NET 3.5, LINQ,
and the Entity Framework with VB 2008

An introduction to LINQ

In this chapter, you'll learn the basic skills for using LINQ, a feature introduced in .NET 3.5. LINQ provides a way for you to query a data source using constructs that are built into the Visual Basic language. That way, you can use the same language to work with a variety of data structures, from datasets to databases to XML documents.

To see how well this book works, you can download this chapter and try it out for yourself!

Chapter 11 An introduction to LINQ
Basic concepts for working with LINQ 348
How LINQ is implemented 348
Advantages of using LINQ 348
Visual Basic 2008 features that support LINQ 350
LINQ providers included with Visual Basic 2008 350
The three stages of a query operation 352
How to code query expressions 354
How to identify the data source for a query 354
How to filter the results of a query 356
How to sort the results of a query 358
How to select fields from a query 360
How to assign an alias to the result of a calculation 362
How to join data from two or more data sources 364
How to use aggregate functions 366
How to group query results 368
How to use additional Visual Basic clauses in query expressions 370
How to use extension methods and lambda expressions 372
How extension methods work 372
Extension methods used to implement LINQ functionality 372
How lambda expressions work 374
How to use lambda expressions with extension methods 374
A Vendors Balances application that uses LINQ 376
The user interface for the application 376
The classes used by the application 376
The code for the form 378

Murach's ADO.NET 3.5 with VB 2008

Learn more about this book

View the table of contents


More about the eBook



Our 100% Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a prompt refund...no questions asked.