O'Reilly logo

Microsoft Silverlight 5 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

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

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