Consuming Data from the Server Using RIA Services

In Chapter 4, we primarily focused on how you can expose data from the server using RIA Services. Let's now look at how you can consume this data in your Silverlight application. The RIA Services code generator has generated code in the Silverlight project that enables you to communicate with the domain services in your Web project. In this section, we'll look at this generated code, and how it helps us consume data from the server.

Inspecting the Generated Code in the Silverlight Project

We briefly discussed how the RIA Services code generator works in Chapter 4. Now that it's time to make use of it, let's inspect it a little closer. As you may recall, RIA Services automatically generates code ...

Get Pro Business Applications with Silverlight 5 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.