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

The DataContext

In most of the previous LINQ to SQL chapters, I reference the DataContext class but have yet to fully explain it. In this chapter, I remedy this oversight.

In this chapter, I explain the DataContext class, what it can do for you, and how to make the most of it. I discuss all of its major methods and provide examples of each. Understanding the DataContext class is necessary to successfully employ LINQ to SQL, and by the time you have read this chapter, you should be a master of the DataContext class.

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