Working with LINQ to SQL from Silverlight

LINQ TO SQL is one of the two Microsoft Object Relational Mapper products, typically aimed at somewhat simpler applications where using a one-on-one database to object mapping is all you need (the other one is the ADO .NET Entity Framework). This ORM can be used together with Silverlight. As getting data into a Silverlight application is typically a matter of using a service-oriented approach, the same applies here. In this recipe, you'll learn how to get data from a LINQ TO SQL model into your Silverlight application.

Getting ready

We're starting from a starter solution that already includes the XAML markup for the UI and a WCF service. If you want, you can use the starter solution located in the Chapter ...

Get Silverlight 4 Data and Services Cookbook 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.