Summary

I know it took a long time to get to the point of knowing what the DataContext class can do for you. LINQ to SQL is not trivial because it encapsulates an understanding of LINQ with an understanding of database queries and SQL. Because of this, there is a lot to know about LINQ to SQL, and much of what there is to understand about the DataContext class is intertwined with entity classes; therefore, something has to come first and something has to come last.

While there is a lot of information in this chapter, probably the most important topics to leave this chapter understanding are how the three DataContext services—identity tracking, change tracking, and change processing—work. Of course, none of those services have any value if you ...

Get Pro LINQ: Language Integrated Query in C# 2008 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.