Print Page | Close Window

Multiple Saves

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2395
Printed Date: 08-Apr-2025 at 4:13pm


Topic: Multiple Saves
Posted By: gregweb
Subject: Multiple Saves
Date Posted: 23-Dec-2010 at 9:59am
An issue that I had in Ria Services that I hope is resolved with DevForce: In Ria, you can't call SubmitChanges will another Submit Changes is already in progress.
 
While this is fine if the user is just clicking on a save button (as you can grey out the button during the save), sometimes I need to call SubmitChanges programatically.  This can result in a second Save operation while the first one is still Saving.  Can this be done with DevForce?
 
My workaround with Ria was to create an Invoke method and manually do the save, but I would like to avoid that with DevForce.
 
Greg



Replies:
Posted By: gregweb
Date Posted: 23-Dec-2010 at 10:46am
In looking at the docs on SaveChangesAsync(), it shows that you can save a specific set of entities, which is exactly what I was looking for.    That will work for me.
 
Greg



Print Page | Close Window