O'Reilly logo

Microsoft® Visual C#® 2008 Step by Step by John Sharp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using LINQ in a C# Application

Perhaps the easiest way to explain how to use the C# features that support LINQ is to work through some simple examples based on the following sets of customer and address information:

Customer Information

CustomerID

FirstName

LastName

CompanyName

1

Orlando

Gee

A Bike Store

2

Keith

Harris

Bike World

3

Donna

Carreras

A Bike Store

4

Janet

Gates

Fitness Hotel

5

Lucy

Harrington

Grand Industries

6

David

Liu

Bike World

7

Donald

Blanton

Grand Industries

8

Jackie

Blackwell

Fitness Hotel

9

Elsa

Leavitt

Grand Industries

10

Eric

Lang

Distant Inn

Address Information

CompanyName

City

Country

A Bike Store

New York

United States

Bike World

Chicago

United States

Fitness Hotel

Ottawa

Canada

Grand Industries

London

United Kingdom

Distant Inn

Tetbury

United Kingdom

LINQ requires the data to be stored ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required