Getting data on the client

This recipe will explain what we have to do to design a service using RIA Services to get data from a (database) server to our client (our Silverlight application) through the service. It will explain how to create a data store, how to create our first RIA Service and Query Method, and how to call this method from our client. It will also explain how this works, thus giving you an insight into the strengths and ease of using RIA Services.

Getting ready

This recipe uses the AdventureWorks Lite database—a free database you can download from http://www.codeplex.com/MSFTDBProdSamples. To follow this recipe, you need to have this database installed on an SQL Server instance you can access from your machine.

We're starting ...

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.