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

Persisting a change set/unit of work

Applies to Silverlight 4 and 5

Getting data on the client is only one part of the story, in most applications, you'll also have to persist data back to server. More often than not, you'll need to persist a set of entities all at once (for example, if you're creating a master-detail list, you'll have to ensure the master record is available before saving the detail records).

WCF RIA Services supports these scenarios out of the box. Entities support change tracking, and the DomainContext tracks these changes through a ChangeSet, which can be persisted to the server when a save is required.

In this recipe, we'll learn how to achieve this.

Getting ready

Before getting started, you've got to make sure the correct ...

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