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

Working with concurrency and transactions

Applies to Silverlight 4 and 5

Handling concurrency is something that comes up sooner or later in any multi-user environment. What should happen when two users are working on the same set of data and a conflict occurs?

As far as transactions are concerned, your changes are automatically wrapped in a transaction when using a LinqToEntityDomainService. However, when you're not using one of those, or when you want to have some more control, you can write your own code for this.

In this recipe, we're going to learn how to work with concurrency and transactions with WCF RIA Services.

Getting ready

Before getting started, you've got to make sure the correct SDK and assemblies to enable WCF RIA Services are available. ...

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