O'Reilly logo

Programming Reactive Extensions and LINQ by Paul Betts, Jesse Liberty

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

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 ...

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