<?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 : IsPendingEntity always false</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : IsPendingEntity always false</description>
  <pubDate>Tue, 14 Apr 2026 13:20:05 -700</pubDate>
  <lastBuildDate>Thu, 13 Jan 2011 07:23:27 -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=2434</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>IsPendingEntity always false : Found the reason. Well one should...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2434&amp;PID=9638#9638</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=508" rel="nofollow">tj62</a><br /><strong>Subject:</strong> 2434<br /><strong>Posted:</strong> 13-Jan-2011 at 7:23am<br /><br />Found the reason. Well one should never copy/paste from Ward Bell without reading the code :-). I had copied in some code from the PrismExplorer. In his repository class query method he calls:<div><br></div><div>p_entityManager.DefaultQueryStrategy = QueryStrategy.Normal; // Ensure going to data source</div><div><br></div><div>and then in the callback he calls:</div><div><div>p_entityManager.DefaultQueryStrategy = QueryStrategy.CacheOnly; // Prevent accidental async lazy loads</div><div><br></div><div>This of course stops everyting and causes IsPendingEntity = false all the time.</div><div><br></div><div>So the solution was to comment out the line in the callback and after that everything works fine!...Actualy I refined this stuff a little. Wards code is a little bit too simple :-)</div><div><br></div><div><br></div></div>]]>
   </description>
   <pubDate>Thu, 13 Jan 2011 07:23:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2434&amp;PID=9638#9638</guid>
  </item> 
  <item>
   <title>IsPendingEntity always false : Hi,Using DevForce versoin6.0.6.0...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2434&amp;PID=9635#9635</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=508" rel="nofollow">tj62</a><br /><strong>Subject:</strong> 2434<br /><strong>Posted:</strong> 13-Jan-2011 at 6:29am<br /><br />Hi,<div>Using DevForce versoin&nbsp;6.0.6.0 for Silverlight:<br><div>I'm starting using navigation properties in Silverlight making use of the PendingEntityResolved such when an image is requested by the parent entity (building entity, EntBuilding) i retrive the image-navigation property (EntImage):&nbsp;</div><div><br></div><div><font ="Apple-style-span" size="1"><span ="Apple-tab-span" style="white-space: pre; ">	</span>// This is a code snipped from my view model.</font></div><div><font ="Apple-style-span" size="1"><span ="Apple-tab-span" style="white-space:pre">	</span>// A databound blob, a Value converter in the XAML takes care of valu conversion andis &nbsp;proofed to work</font></div><div><div><font ="Apple-style-span" size="1">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>public byte&#091;&#093; p_image /</font></div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</font></div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;get</font></div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</font></div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (p_currentItem == null) &nbsp;// If no item is selected return null</font></div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return null;</font></div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EntBuilding b = (EntBuilding) p_currentItem; // The type is guranteed to be EntBuilding</font></div><div><font ="Apple-style-span" size="1"><br></font></div><div><font ="Apple-style-span" size="1"><span ="Apple-tab-span" style="white-space:pre">		</span>// Some test commented out</font></div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// var test = EntBuilding.PropertyMetadata.p_image.GetEntityReference(b);</font></div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// test.IsLoaded = false;</font></div><div><font ="Apple-style-span" size="1"><br></font></div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<b>if (b.p_image.EntityAspect.IsPendingEntity) // always returns false!!</b></font></div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</font></div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;b.p_image.EntityAspect.PendingEntityResolved += OnPendingEntImageResolved;</font></div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</font></div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return b.p_image.p_image;</font></div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</font></div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</font></div></div><div><font ="Apple-style-span" size="1"><br></font></div><div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;private void OnPendingEntImageResolved(object sender, PendingEntityResolvedEventArgs e)</font></div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</font></div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (p_currentItem is EntBuilding)</font></div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RaisePropertyChanged("p_image");</font></div><div><font ="Apple-style-span" size="1">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</font></div></div><div><br></div><div>The strange thing is that&nbsp;b.p_image.EntityAspect.IsPendingEntity is allways false, although it has not been loaded.&nbsp;</div><div>After investigating my Entity model better I notice that all not-loaded navigation propertis are having&nbsp;<b>IsPendingEntity = false </b>but GetEntityReference(xx).IsLoaded = false. The same is tro for IsPendingEntityList. It is allways true alothugh the navigatoin collectoin properties have not been loaded.</div><div><br></div><div>How can that be?</div></div><div>PS: I'm using Entity Model against INformis Dynamic Server version 11.5 without any problems until now.</div>]]>
   </description>
   <pubDate>Thu, 13 Jan 2011 06:29:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2434&amp;PID=9635#9635</guid>
  </item> 
 </channel>
</rss>