May 2010
Intermediate to advanced
1272 pages
61h 18m
English
Before you begin querying data with LINQ to SQL, you need to instantiate the DataContext class. Continuing with the console application example started in the previous section, you can declare such an instance at the module level as follows:
Private northwind As New NorthwindDataContext
Declaring a single instance at the module or class level allows one DataContext to manage entities for all the object model lifetime.
Read now
Unlock full access