<?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 : ImportEntities and RelatedEntityList</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : ImportEntities and RelatedEntityList</description>
  <pubDate>Mon, 13 Apr 2026 09:57:00 -700</pubDate>
  <lastBuildDate>Mon, 04 Apr 2011 20:41:38 -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=2604</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>ImportEntities and RelatedEntityList : It won&amp;#039;t really be that large...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2604&amp;PID=10378#10378</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> 2604<br /><strong>Posted:</strong> 04-Apr-2011 at 8:41pm<br /><br />It won't really be that large of a footprint, as long as the EM is being disposed when the Sandbox is closed. <br><br>This is how my application looks:<br><br>Preloader EntityManager - Used on product startup to retrieve lookup tables and settings data, when an EM is created it imports data from this Preloader EM.<br><br>For each Customer edit screen a new EM is created that contains the preloaded data and then queries the data pertinent to that customer only. When the contacts edit screen is loaded a EM is created that imports from the Customer sandbox, so again, still only contains that customers info. When the contacts screen is closed, that EM is disposed of, likewise when the Customer screen is closed, that one is disposed too.<br><br>As long as you aren't loading EVERYTHING into one EM and copying it all over the place, I don't think memory use will be much of an issue.<br>]]>
   </description>
   <pubDate>Mon, 04 Apr 2011 20:41:38 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2604&amp;PID=10378#10378</guid>
  </item> 
  <item>
   <title>ImportEntities and RelatedEntityList : Yeah that&amp;#039;s what I&amp;#039;ve...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2604&amp;PID=10376#10376</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=870" rel="nofollow">hueha</a><br /><strong>Subject:</strong> 2604<br /><strong>Posted:</strong> 04-Apr-2011 at 5:24pm<br /><br />Yeah that's what I've ended up doing. &nbsp;I didn't really want to go down this path though because I'm afraid the memory footprint is going to get quite large.]]>
   </description>
   <pubDate>Mon, 04 Apr 2011 17:24:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2604&amp;PID=10376#10376</guid>
  </item> 
  <item>
   <title>ImportEntities and RelatedEntityList : Hi hueha,  Thanks for pointing...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2604&amp;PID=10372#10372</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> 2604<br /><strong>Posted:</strong> 04-Apr-2011 at 9:58am<br /><br />Hi hueha,<DIV>&nbsp;</DIV><DIV>Thanks for pointing out the issue with <EM>IsPendingentitylist</EM> being <EM>false</EM>.</DIV><DIV>In your scenario, the contacts collection should indeed be empty. (i.e. length==0)</DIV><DIV>&nbsp;</DIV><DIV>If you want the contacts to be present in the sandbox EM, you should import them as well.</DIV><DIV>&nbsp;</DIV><DIV>You might want to take a look at the <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/entities-import" target="_blank">DevForce Resource Center</A> for detailed information about importing an entity graph.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 04 Apr 2011 09:58:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2604&amp;PID=10372#10372</guid>
  </item> 
  <item>
   <title>ImportEntities and RelatedEntityList : Curious. It will reset to IsPendingEntityList...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2604&amp;PID=10368#10368</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=870" rel="nofollow">hueha</a><br /><strong>Subject:</strong> 2604<br /><strong>Posted:</strong> 02-Apr-2011 at 7:25am<br /><br />Curious. &nbsp;It will reset to IsPendingEntityList = true after you execute a query on the new entity manager<div><br></div>]]>
   </description>
   <pubDate>Sat, 02 Apr 2011 07:25:09 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2604&amp;PID=10368#10368</guid>
  </item> 
  <item>
   <title>ImportEntities and RelatedEntityList : I&amp;#039;m not sure if I&amp;#039;m...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2604&amp;PID=10367#10367</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=870" rel="nofollow">hueha</a><br /><strong>Subject:</strong> 2604<br /><strong>Posted:</strong> 02-Apr-2011 at 7:05am<br /><br />I'm not sure if I'm doing anything wrong but I've noticed that any RelatedEntityList are not being copied correctly into a sandbox entity manager.<div><br></div><div>Lets say I have a customer that has a contacts collection. &nbsp;I use ImportEntities on the customer object to import it into a sandboxed entity manager. &nbsp;In the sandbox the contacts collection (which is a relatedEntityList) becomes a 0 length collection with IsPendingentitylist=false. &nbsp;This happens when contacts collection is loaded (not pending) or not.</div><div><br></div><div>This is the sort of thing I'm doing. &nbsp;Where myEntities is the entity manager and myCustomer is the customer from the model. mgr is the main entity manger of type myEntities.</div><div><br></div><div><div><span ="Apple-tab-span" style="white-space: pre; ">	</span>&nbsp;&nbsp; &nbsp;var sandboxEM = new&nbsp;myEntities&nbsp;();</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sandboxEM.LinkForAuthentication(mgr);</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sandboxEM.ImportEntities(new object&#091;&#093; { myCustomer}, MergeStrategy.OverwriteChanges);</div></div>]]>
   </description>
   <pubDate>Sat, 02 Apr 2011 07:05:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2604&amp;PID=10367#10367</guid>
  </item> 
 </channel>
</rss>