<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : SaveChangesAsync</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : SaveChangesAsync</description>
  <pubDate>Thu, 14 May 2026 18:37:18 -700</pubDate>
  <lastBuildDate>Tue, 18 Jan 2011 18:15:19 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2448</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>SaveChangesAsync : OK, thanks, I didn&amp;#039;t know...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2448&amp;PID=9687#9687</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 2448<br /><strong>Posted:</strong> 18-Jan-2011 at 6:15pm<br /><br />OK, thanks, I didn't know that about the EntityAspect, I will try using that.<DIV>&nbsp;</DIV><DIV>Greg</DIV>]]>
   </description>
   <pubDate>Tue, 18 Jan 2011 18:15:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2448&amp;PID=9687#9687</guid>
  </item> 
  <item>
   <title>SaveChangesAsync : Greg,   How exactly are you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2448&amp;PID=9680#9680</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2448<br /><strong>Posted:</strong> 18-Jan-2011 at 3:16pm<br /><br /><P>Greg, </P><DIV>&nbsp;</DIV><DIV>How exactly are you deleting the entity? (code)</DIV><DIV>&nbsp;</DIV><DIV>You should be using:</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>myEntity.EntityAspect.Delete();</FONT></FONT></DIV><DIV>&nbsp;</DIV><DIV>Also, when exactly are you getting the exception? When calling SaveChanges?</DIV><DIV>&nbsp;</DIV><DIV>Silvio.</DIV>]]>
   </description>
   <pubDate>Tue, 18 Jan 2011 15:16:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2448&amp;PID=9680#9680</guid>
  </item> 
  <item>
   <title>SaveChangesAsync : I have a grid with entities with...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2448&amp;PID=9673#9673</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 2448<br /><strong>Posted:</strong> 17-Jan-2011 at 7:03pm<br /><br />I have a grid with entities with a delete button.&nbsp; When I delete an item I basically just set IsDeleted to true on the Entity and Save the Item.&nbsp; This works fine.&nbsp; However, if there are two deletes in a row, the second delete throws an error.&nbsp; Is there a recommended handling for this?&nbsp; In Ria Services, I stopped using SaveChanges, and just used an InvokeMethod and saved the item manually.<DIV>&nbsp;</DIV><DIV>Do you have any recommendations on this?</DIV><DIV>&nbsp;</DIV><DIV>Greg</DIV><DIV>&nbsp;</DIV><DIV>Entity Save Error: System.Data.UpdateException: An error occurred while updating the entries. See the inner exception for details. ---&gt; MySql.Data.MySqlClient.MySqlException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(SELECT `vemailmessageentities`.`FolderId`, `vemailmessageentities`' at line 1 at MySql.Data.MySqlClient.MySqlStream.ReadPacket() at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32&amp; affectedRow, Int32&amp; insertedId) at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32&amp; affectedRows, Int32&amp; insertedId) at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId) at MySql.Data.MySqlClient.MySqlDataReader.NextResult() at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader() at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery() at MySql.Data.Entity.EFMySqlCommand.ExecuteNonQuery() at System.Data.Mapping.Update.Internal.DynamicUpdateCommand.Execute(UpdateTranslator translator, EntityConnection connection, Dictionary`2 identifierValues, List`1 generatedValues) at System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter) --- End of inner exception stack trace --- at System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter) at System.Data.EntityClient.EntityAdapter.Update(IEntityStateManager entityCache) at System.Data.Objects.ObjectContext.SaveChanges(SaveOptions options) at IdeaBlade.EntityModel.Edm.EdmSaveExecutor.ProcessSaves(IEnumerable`1 groupsByType) at IdeaBlade.EntityModel.Edm.EdmSaveExecutor.SaveWithinContext() at IdeaBlade.EntityModel.Edm.EdmSaveExecutor.Save(DataSourceResolver dataSourceResolver, IDataSourceKey dsKey, SaveWorkState workState)</DIV>]]>
   </description>
   <pubDate>Mon, 17 Jan 2011 19:03:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2448&amp;PID=9673#9673</guid>
  </item> 
 </channel>
</rss>