<?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 : Add ability to create child entitymanager</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Add ability to create child entitymanager</description>
  <pubDate>Wed, 29 Jul 2026 06:21:20 -700</pubDate>
  <lastBuildDate>Fri, 24 Sep 2010 12:11:22 -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=2187</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>Add ability to create child entitymanager : You could probably write some...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2187&amp;PID=8623#8623</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> 2187<br /><strong>Posted:</strong> 24-Sep-2010 at 12:11pm<br /><br />You could probably write some sort of wrapper around the EntityManager. When you initialize it, it will load in the main entities, and upon calling the wrapped save function, it will save from the child EM, and then import back into the primary EM. Wouldn't be too difficult to write.]]>
   </description>
   <pubDate>Fri, 24 Sep 2010 12:11:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2187&amp;PID=8623#8623</guid>
  </item> 
  <item>
   <title>Add ability to create child entitymanager : Funny you should ask for this,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2187&amp;PID=8618#8618</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=485" rel="nofollow">jsobell</a><br /><strong>Subject:</strong> 2187<br /><strong>Posted:</strong> 23-Sep-2010 at 11:21pm<br /><br />Funny you should ask for this, I was discussing exactly the same thing with Ward last week :)<br>I presume you're trying to implement a 'transaction' like structure so you can rollback changes to multiple child records, yet have their changes written to the parent manager when you save them.<br><br>]]>
   </description>
   <pubDate>Thu, 23 Sep 2010 23:21:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2187&amp;PID=8618#8618</guid>
  </item> 
  <item>
   <title>Add ability to create child entitymanager : Hi,   How about creating an...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2187&amp;PID=8612#8612</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> 2187<br /><strong>Posted:</strong> 23-Sep-2010 at 12:35pm<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>How about creating an "ChildEntityManager" and importing into it Entities from a "ParentEntityManager" by using <strong>ImportEntities(IEnumerable entities,&nbsp;&nbsp; MergeStrategy mergeStrategy)</strong>?</DIV><DIV>Afterwards, you could import the Entities back to the ParentEntityManager with any changes that happen to be made (AcceptChanges()/RejectChanges() would only apply to the entity within one entity manager or the other).</DIV><DIV>&nbsp;</DIV><DIV>You can find more details in the <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/SavingBusiness&#079;bjects#HDependencyGraphRetrieval" target="_blank">DevForce Resource Center</A>.</DIV>]]>
   </description>
   <pubDate>Thu, 23 Sep 2010 12:35:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2187&amp;PID=8612#8612</guid>
  </item> 
  <item>
   <title>Add ability to create child entitymanager : It would be great if we could...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2187&amp;PID=8609#8609</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=953" rel="nofollow">bigyes</a><br /><strong>Subject:</strong> 2187<br /><strong>Posted:</strong> 23-Sep-2010 at 10:06am<br /><br />It would be great if we could create a child entitymanager from an existing entitymanager. A child would be able to see&nbsp;(and update) its parents already loaded entities. An entity would stay unique in a complete entitymanager hierarchy.<DIV>AcceptChanges()/RejectChanges() would only occurs on a top&gt;down basis against this hierarchy.</DIV><DIV>&nbsp;</DIV><DIV>With this, I could start a&nbsp;use case with its own entityManager but having already some&nbsp;"reference data" entities in cache.</DIV><DIV>&nbsp;</DIV><DIV>I can do that using :</DIV><DIV><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><P>DXGridServerModeDBEntities</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> _ctx = </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>new</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>DXGridServerModeDBEntities</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>();</P><P>_ctx.CacheStateManager.RestoreCacheState(_refDataCtx.CacheStateManager.GetCacheState());</P><P>but "reference data"&nbsp;entities are duplicated.</P><DIV>Do you think entitymanager hierarchy is a good idea ?</DIV><DIV></FONT></FONT>&nbsp;</DIV></DIV>]]>
   </description>
   <pubDate>Thu, 23 Sep 2010 10:06:38 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2187&amp;PID=8609#8609</guid>
  </item> 
 </channel>
</rss>