<?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 : Navigation property trouble</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Navigation property trouble</description>
  <pubDate>Wed, 15 Apr 2026 20:57:51 -700</pubDate>
  <lastBuildDate>Fri, 03 Jun 2011 17:00:50 -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=2711</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>Navigation property trouble : I see. Unfortunately, it sounds...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2711&amp;PID=10893#10893</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2711<br /><strong>Posted:</strong> 03-Jun-2011 at 5:00pm<br /><br />I see. Unfortunately, it sounds like you're correct on the requirements.]]>
   </description>
   <pubDate>Fri, 03 Jun 2011 17:00:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2711&amp;PID=10893#10893</guid>
  </item> 
  <item>
   <title>Navigation property trouble :   Sorry for the delayed response....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2711&amp;PID=10890#10890</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1167" rel="nofollow">tjuncewicz</a><br /><strong>Subject:</strong> 2711<br /><strong>Posted:</strong> 03-Jun-2011 at 8:18am<br /><br />Sorry for the delayed response.&nbsp; Yes, there are a few reasons we haven't upgraded.&nbsp; DF 2010 requires .Net 4, which requires purchase of VS2010 for all of my devs, plus a new set of licenses for our source control (which doesn't work with VS2010), plus new expression blend (we are using WPF) plus the T4 generator changed the naming for all of our navigation "ID"&nbsp;properties from "something_FK_something_ID" to just "somethingID" which would require overhauling a TON of XAML (we have 400+ entities and scores of screens).<div>&nbsp;</div><div>Maybe I am mistaken in the requirements above?&nbsp; We DO eventually plan on upgrading but we are already late on a project and fear this would cause even more havoc/delays..</div>]]>
   </description>
   <pubDate>Fri, 03 Jun 2011 08:18:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2711&amp;PID=10890#10890</guid>
  </item> 
  <item>
   <title>Navigation property trouble : I see. Is there any specific reason...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2711&amp;PID=10834#10834</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2711<br /><strong>Posted:</strong> 26-May-2011 at 11:28am<br /><br />I see. Is there any specific reason that's preventing you from upgrading to DevForce 2010?]]>
   </description>
   <pubDate>Thu, 26 May 2011 11:28:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2711&amp;PID=10834#10834</guid>
  </item> 
  <item>
   <title>Navigation property trouble : Thanks for the response. We are...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2711&amp;PID=10832#10832</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1167" rel="nofollow">tjuncewicz</a><br /><strong>Subject:</strong> 2711<br /><strong>Posted:</strong> 26-May-2011 at 8:20am<br /><br />Thanks for the response.&nbsp; We are using 5.2.7.]]>
   </description>
   <pubDate>Thu, 26 May 2011 08:20:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2711&amp;PID=10832#10832</guid>
  </item> 
  <item>
   <title>Navigation property trouble : Hi tjuncewicz;I was not able to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2711&amp;PID=10816#10816</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2711<br /><strong>Posted:</strong> 24-May-2011 at 6:08pm<br /><br />Hi tjuncewicz;<div><br></div><div>I was not able to repro this. This might be an old bug that has been fixed in the latest 6.1.0 version. &nbsp;What DevForce version are you using?</div><div><br></div><div>I've included my test below.</div><div><br></div><div><b>RPC Method</b></div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>&nbsp; &nbsp; &#091;AllowRpc&#093;</div><div>&nbsp; &nbsp; public static EntityCacheState GetCustomerWithOrders(IPrincipal principal, EntityManager em, params Object&#091;&#093; args) {</div><div>&nbsp; &nbsp; &nbsp; var baseQuery = em.GetQuery&lt;Customer&gt;()</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .Where(c =&gt; c.Id == 1);</div><div>&nbsp; &nbsp; &nbsp; baseQuery.Include(c =&gt; c.OrderSummaries);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; var customerResults = baseQuery.ToList();</div><div>&nbsp; &nbsp; &nbsp; var includedOrders = customerResults.First().OrderSummaries.ToList();</div><div><br></div><div>&nbsp; &nbsp; &nbsp; var customerInCache = em.FindEntities&lt;Customer&gt;(EntityState.AllButDetached).ToList();</div><div>&nbsp; &nbsp; &nbsp; var includedOrdersInCache = em.FindEntities&lt;OrderSummary&gt;(EntityState.AllButDetached).ToList();</div><div>&nbsp; &nbsp; &nbsp; var allEntitiesInCache = em.FindEntities(EntityState.AllButDetached).OfType&lt;Entity&gt;().ToList();</div><div><br></div><div>&nbsp; &nbsp; &nbsp; if (customerResults.Count != customerInCache.Count ||</div><div>&nbsp; &nbsp; &nbsp; &nbsp; includedOrders.Count != includedOrdersInCache.Count ||</div><div>&nbsp; &nbsp; &nbsp; &nbsp; allEntitiesInCache.Count != (customerResults.Count + includedOrders.Count)) {</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; throw new IdeaBladeException("Cache does not have the same count");</div><div><br></div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; var entityCacheState = em.CacheStateManager.GetCacheState();</div><div><br></div><div>&nbsp; &nbsp; &nbsp; return entityCacheState;</div><div>&nbsp; &nbsp; }</div></div><div></pre></td></tr></table></div><div><br></div><div><b>Main Method</b></div><div><b><br></b></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>&nbsp; &nbsp; var op = mgr.InvokeServerMethodAsync(typeName, methodName, null, null, null);</div><div>&nbsp; &nbsp; &nbsp; op.Completed += (o, args) =&gt; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Assert.IsFalse(args.HasError, "Should not have errors");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Assert.IsTrue(args.Result is EntityCacheState, "ECS should be returned");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; var ecs = args.Result as EntityCacheState;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; mgr.CacheStateManager.RestoreCacheState(ecs);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; mgr.Customers</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Where(c =&gt; c.Id == 1)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .ExecuteAsync(queryOp =&gt; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var anotherCust = queryOp.Results.Cast&lt;Customer&gt;().First();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Assert.IsFalse(anotherCust.OrderSummaries.IsPendingEntityList, "OrderSummaries should not be pending");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var orders = anotherCust.OrderSummaries.ToList();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });</div><div>&nbsp; &nbsp; &nbsp; };</div></div><div></pre></td></tr></table></div><div><br></div>]]>
   </description>
   <pubDate>Tue, 24 May 2011 18:08:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2711&amp;PID=10816#10816</guid>
  </item> 
  <item>
   <title>Navigation property trouble :   Does anyone know of an issue...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2711&amp;PID=10807#10807</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1167" rel="nofollow">tjuncewicz</a><br /><strong>Subject:</strong> 2711<br /><strong>Posted:</strong> 24-May-2011 at 1:02pm<br /><br />Does anyone know of an issue of using the EntityCacheState returned from an InvokeServerMethodAsync call when it comes to navigation properties?&nbsp; We retrieve a master object in the RPC, using an Include() to make sure the details are also returned, then return the entire ECS.&nbsp; We merge the ECS back into our main EM in our callback function, but whenever we access the master object's navigation property it still goes back to the server to get the details, even through the details were returned as part of the ECS.&nbsp; Is the serialization/deserialization process "losing" the navigation property "linkage"?<div>&nbsp;</div><div>Thanks.</div>]]>
   </description>
   <pubDate>Tue, 24 May 2011 13:02:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2711&amp;PID=10807#10807</guid>
  </item> 
 </channel>
</rss>