Introducing LINQ to SQL
LINQ to SQL consists of an object model and a runtime. The object model is encapsulated in the DataContext object (an object that inherits from System.Data.Linq.DataContext). The runtime mediates between objects (the DataContext ) and relational data (the local database).
Before we get down to the details of using LINQ to SQL on the phone, we can familiarize ourselves with the query language of LINQ to SQL via LINQPad. With LINQPad, we can connect to existing databases, and “explore” the data. When writing code to interface with existing databases, this is a great first step, as it will give you a better idea on how to start writing an application.
Fortunately, even if you don't have an existing database, Microsoft has ...