O'Reilly logo

Silverlight 4 Data and Services Cookbook by Kevin Dockx, Gill Cleeren

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

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

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