O'Reilly logo

Pro LINQ: Language Integrated Query in C# 2008 by Joseph C. Rattz Jr.

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 the LINQ to SQL API

In order to use the LINQ to SQL API, you will need to add the System.Data.Linq.dll assembly to your project if it is not already there. Also, if they do not already exist, you will need to add using directives to your source module for the System.Linq and System.Data.Linq namespaces like this:

using System.Data.Linq;
using System.Linq;

Additionally, for the examples, you will need to add a using directive for the namespace the entity classes were generated into, nwind:

using nwind;

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