<?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 : BUG - RejectChanges</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : BUG - RejectChanges</description>
  <pubDate>Tue, 21 Apr 2026 22:29:10 -700</pubDate>
  <lastBuildDate>Tue, 10 Aug 2010 17:08:37 -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=1901</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>BUG - RejectChanges : FYI, I call revert changes on...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=8042#8042</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=838" rel="nofollow">rhaney</a><br /><strong>Subject:</strong> 1901<br /><strong>Posted:</strong> 10-Aug-2010 at 5:08pm<br /><br />FYI, I call revert changes on the instance of Person.]]>
   </description>
   <pubDate>Tue, 10 Aug 2010 17:08:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=8042#8042</guid>
  </item> 
  <item>
   <title>BUG - RejectChanges : Greg,  Can you also test one...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=8041#8041</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=838" rel="nofollow">rhaney</a><br /><strong>Subject:</strong> 1901<br /><strong>Posted:</strong> 10-Aug-2010 at 5:07pm<br /><br />Greg,<DIV>&nbsp;</DIV><DIV>Can you also test one more thing?&nbsp; I am unable to revert changes to a complex type.</DIV><DIV>&nbsp;</DIV><DIV>In my model:</DIV><DIV>&nbsp;</DIV><DIV>Name is a complex type having three string properties, First, Last, Middle.</DIV><DIV>Person has a complex property of type Name.</DIV><DIV>&nbsp;</DIV><DIV>If I materialize a person, change the last name, and call revert changes, it doesn't revert the name.</DIV><DIV>&nbsp;</DIV><DIV>Thanks!</DIV>]]>
   </description>
   <pubDate>Tue, 10 Aug 2010 17:07:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=8041#8041</guid>
  </item> 
  <item>
   <title>BUG - RejectChanges :   Originally posted by mikewishart In...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=8037#8037</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1901<br /><strong>Posted:</strong> 10-Aug-2010 at 1:39pm<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by mikewishart</strong></em><br /><br />In DevForce 6.0.4<br>Rejecting changes for the entire EntityManager does not seem to restore a parent's relationship to the deleted child.&nbsp; Should it?<br><br>child.EntityAspect.Delete();<br>EntityManager.RejectChanges();<br><br>Parent.children - does not contain <u>child</u>; however, the EntityManager does show the child with no changes AND its parent has been restored properly.<br><br>I'm unsure if this is proper behavior, but if it is, I'm not sure how to restore the child relationship.<br><br>Thanks for any help.<br><br></td></tr></table><div><br></div><div>This bug has been fixed. Fix will be in the next release.</div>]]>
   </description>
   <pubDate>Tue, 10 Aug 2010 13:39:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=8037#8037</guid>
  </item> 
  <item>
   <title>BUG - RejectChanges : You&amp;#039;re most welcome, Mike....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=8019#8019</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1901<br /><strong>Posted:</strong> 06-Aug-2010 at 7:42am<br /><br />You're most welcome, Mike. Your very clear and nicely isolated reports are really a tremendous help to us in isolating and correcting problems in DevForce. We appreciate your patience!]]>
   </description>
   <pubDate>Fri, 06 Aug 2010 07:42:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=8019#8019</guid>
  </item> 
  <item>
   <title>BUG - RejectChanges : Thanks Greg, you&amp;#039;ve been...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=8011#8011</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=704" rel="nofollow">mikewishart</a><br /><strong>Subject:</strong> 1901<br /><strong>Posted:</strong> 05-Aug-2010 at 5:07pm<br /><br />Thanks Greg,&nbsp; you've been a big help. <br><br>Mike<br>]]>
   </description>
   <pubDate>Thu, 05 Aug 2010 17:07:09 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=8011#8011</guid>
  </item> 
  <item>
   <title>BUG - RejectChanges :   Originally posted by mikewishart In...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=8010#8010</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1901<br /><strong>Posted:</strong> 05-Aug-2010 at 4:50pm<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by mikewishart</strong></em><br /><br />In DevForce 6.0.4<br>Rejecting changes for the entire EntityManager does not seem to restore a parent's relationship to the deleted child.&nbsp; Should it?<br><br>child.EntityAspect.Delete();<br>EntityManager.RejectChanges();<br><br>Parent.children - does not contain <u>child</u>; however, the EntityManager does show the child with no changes AND its parent has been restored properly.<br><br>I'm unsure if this is proper behavior, but if it is, I'm not sure how to restore the child relationship.<br><br>Thanks for any help.<br><br></td></tr></table><div><br></div><div>This looks like a bug - the parent's collection of children should again contain the deleted and restored child. &nbsp;I've reproduced it in a test case and created a Defect Report in our issue system.</div><div><br></div><div>I don't know of a good work-around, but I'll ask around for ideas.</div><div><br></div><div>Of course, if you know that a given entity belongs in a parent's collection of children of that type, you can explicitly add it to that collection.</div>]]>
   </description>
   <pubDate>Thu, 05 Aug 2010 16:50:59 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=8010#8010</guid>
  </item> 
  <item>
   <title>BUG - RejectChanges :  In DevForce 6.0.4Rejecting changes...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=7951#7951</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=704" rel="nofollow">mikewishart</a><br /><strong>Subject:</strong> 1901<br /><strong>Posted:</strong> 02-Aug-2010 at 4:06pm<br /><br />In DevForce 6.0.4<br>Rejecting changes for the entire EntityManager does not seem to restore a parent's relationship to the deleted child.&nbsp; Should it?<br><br>child.EntityAspect.Delete();<br>EntityManager.RejectChanges();<br><br>Parent.children - does not contain <u>child</u>; however, the EntityManager does show the child with no changes AND its parent has been restored properly.<br><br>I'm unsure if this is proper behavior, but if it is, I'm not sure how to restore the child relationship.<br><br>Thanks for any help.<br><br><span style="font-size:10px"><br /><br />Edited by mikewishart - 02-Aug-2010 at 4:22pm</span>]]>
   </description>
   <pubDate>Mon, 02 Aug 2010 16:06:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=7951#7951</guid>
  </item> 
  <item>
   <title>BUG - RejectChanges : Hi Mark - We&amp;#039;re currently...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=7448#7448</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1901<br /><strong>Posted:</strong> 28-Jun-2010 at 5:51pm<br /><br />Hi Mark - We're currently scheduled to release in the last two weeks of July.]]>
   </description>
   <pubDate>Mon, 28 Jun 2010 17:51:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=7448#7448</guid>
  </item> 
  <item>
   <title>BUG - RejectChanges : Thanks Greg. Is there an expected...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=7445#7445</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 1901<br /><strong>Posted:</strong> 28-Jun-2010 at 2:04pm<br /><br />Thanks Greg. Is there an expected release date? We have a project going into production in just over a month, so I'd like to have this in before then!<br><br>Mark<br>]]>
   </description>
   <pubDate>Mon, 28 Jun 2010 14:04:54 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=7445#7445</guid>
  </item> 
  <item>
   <title>BUG - RejectChanges : Bug has been fixed. Fix will go...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=7413#7413</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1901<br /><strong>Posted:</strong> 24-Jun-2010 at 3:49pm<br /><br />Bug has been fixed. Fix will go out with the next DevForce 2010 release.]]>
   </description>
   <pubDate>Thu, 24 Jun 2010 15:49:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=7413#7413</guid>
  </item> 
  <item>
   <title>BUG - RejectChanges :  Originally posted by smi-markHi,I&amp;#039;ve...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=7365#7365</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1901<br /><strong>Posted:</strong> 21-Jun-2010 at 1:47pm<br /><br /> <table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by smi-mark</strong></em><br /><br />Hi,I've found a bug in the RejectChanges method. RejectChanges does not return relation properties back to what they were.</td></tr></table> <br /><br />I have duplicated this issue and entered a bug report.<br /><br />All please note that RejectChanges() will NOT undo changes in related <em>child</em> entities; e.g., if you add Order y to Customer x, rejecting changes on Customer x will not remove the association between Order y and Customer x, because that change actually took place on the <em>Order</em>, not the Customer.<br /><br />But in the case of changing a relation involving a <em>parent</em>, RejectChanges() should undo the change, since the foreign key lives on the child. For example, if you change the Customer associated with an Order, rejecting changes on the Order should undo the change in the relation. This is smi-mark's use case.<br /><br />DevForce is undoing the foreign key value, but the relation is still returning the original parent. We'll get it fixed.<span style="font-size:10px"><br /><br />Edited by GregD - 21-Jun-2010 at 1:48pm</span>]]>
   </description>
   <pubDate>Mon, 21 Jun 2010 13:47:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=7365#7365</guid>
  </item> 
  <item>
   <title>BUG - RejectChanges : My temporary solution is to do...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=7359#7359</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 1901<br /><strong>Posted:</strong> 20-Jun-2010 at 12:48pm<br /><br />My temporary solution is to do the following:<br><br>&nbsp;&nbsp;&nbsp; Public Property LicenseType2 As LicenseType<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Get<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Return Me.EntityManager.GetQuery(Of LicenseType).Where(Function(l) l.Id = Me.LicenseTypeId).FirstOrNullEntity()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End Get<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set(ByVal value As LicenseType)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.LicenseTypeId = value.Id<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End Set<br>&nbsp;&nbsp;&nbsp; End Property<br><br>Now I can bind to LicenseType2 and reject changes shows the correct value.<br>]]>
   </description>
   <pubDate>Sun, 20 Jun 2010 12:48:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=7359#7359</guid>
  </item> 
  <item>
   <title>BUG - RejectChanges : Hi,I&amp;#039;ve found a bug in the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=7358#7358</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 1901<br /><strong>Posted:</strong> 20-Jun-2010 at 12:10pm<br /><br />Hi,<br><br>I've found a bug in the RejectChanges method. RejectChanges does not return relation properties back to what they were.<br><br>Example:<br><br>License<br>&nbsp;&nbsp; &nbsp;LicenseTypeId = 1<br>&nbsp;&nbsp; &nbsp;LicenseType = LicenseType ('Type 1')<br><br>CHANGE LicenseType = 'Type 2'<br><br>License<br>&nbsp;&nbsp; &nbsp;LicenseTypeId = 2<br>&nbsp;&nbsp; &nbsp;LicenseType = LicenseType ('Type 2')<br><br>Now call RejectChanges() and it looks as follows:<br><br>License<br>&nbsp;&nbsp; &nbsp;LicenseTypeId = 1<br>&nbsp;&nbsp; &nbsp;LicenseType = LicenseType ('Type 2')<br><br><br><br>]]>
   </description>
   <pubDate>Sun, 20 Jun 2010 12:10:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1901&amp;PID=7358#7358</guid>
  </item> 
 </channel>
</rss>