Tuesday, February 9, 2010

WCF RIA Services – Short Notes – Custom logic on solving concurrency errors

DomainServices have solving concurrency errors as a first class scenario. If you want to override the framework default logic you should.

Have an update operation for the entity.

Have a method that handles the concurrency and that:

  1. Begins with the word Resolve plus the name of the entity.
  2. Follows the signature template:
   1: public bool ResolveEntityA(EntityA current, EntityA original, EntityA store, bool deleteOperation)

Have fun,

No comments: