views:

9

answers:

0

I have a WCF RIA service app that in one of its services Insert method I should assign an incremental identification code to a property of its entity from the previously added record. I use SQL server and Entity framework in DAL.

How can I avoid optimistic concurrency in such situations and assign the code without the knowledge of the clients?

Thanks.