Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

11. Using WCF RIA Services > Controlling the server-side query from the client

Controlling the server-side query from the client

Applies to Silverlight 4 and 5

Controlling the data that's fetched is a very common requirement, instead of fetching all entities of a certain type, you might only want to fetch those that have been changed in the last week. Or you might want to fetch a specific employee from an employee database, instead of fetching all employees from the server.

In the next recipe, Sorting and filtering data on the server, we'll look into doing this by writing extra query methods on our DomainService. In this recipe, we'll learn how to do this (for the most common requirements) straight from the client, without having to write extra code on the server.

Getting ready

Before getting started, you've got to make sure the correct SDK and assemblies to enable WCF RIA Services are available. Please refer to the recipe Setting up a data solution to work with WCF RIA Services for more information.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint