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

Using LoadBehavior to control what happens to your data once it's sent to the client

Applies to Silverlight 4 and 5

Fetching data from the server is one thing, but as we're working in a disconnected environment, we need a way to control what happens to entities when they arrive on the client, what if a version of that same Entity already exists on the client? Should it be ignored? Merged? Overwritten?

In this recipe, we'll learn how to deal with these situations.

Getting ready

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

We're starting from a provided starter solution, which ...

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