I have a distributed application that sends data through WCF to a server that will be stored in a database (SQL Server 2008).
Usually this data is new. So I just insert InsertAllOnSubmit ().
But sometimes, due to the peculiarities of communicating with handheld devices that launch the client side, I get an object that is already on the server.
Is there any way to say InsertOrUpdateAllOnSubmit? Or will I have to change my code to go through each object and check if it is in the database, and then do and insert or update as needed? I have quite a few types of objects, so it will be very tiring :(
source share