<?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 : EntityReferenceLoadStrategy</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : EntityReferenceLoadStrategy</description>
  <pubDate>Sun, 12 Apr 2026 01:18:40 -700</pubDate>
  <lastBuildDate>Fri, 05 Feb 2010 14:26:58 -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=1637</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>EntityReferenceLoadStrategy :  There are two approaches you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1637&amp;PID=6178#6178</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> 1637<br /><strong>Posted:</strong> 05-Feb-2010 at 2:26pm<br /><br /><font size="3"><font color="#1f497d"><font face="Calibri">There are two approaches you can use:</font></font></font><span style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"><span style=""><br><br>1)<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: n&#111;ne; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Calibri','sans-serif'; font-size: 11pt;">The EntityReferenceStrategy can be set for a property via the EntityRelationRole via the static EntityRelations defined for each type.&nbsp; This effects all navigation on this property.<o:p></o:p></span><span style="font-family: C&#111;nsolas; font-size: 9.5pt;"><span style=""><br></span></span><blockquote><span style="font-family: C&#111;nsolas; font-size: 9.5pt;"><span style="">a.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: n&#111;ne; font-stretch: normal;">&nbsp; </span></span></span><span style="font-family: C&#111;nsolas; font-size: 9.5pt;">EntityRelations</span><span style="font-family: C&#111;nsolas; font-size: 9.5pt;">.FK_OrderSummary_Customer.Role1.ReferenceStrategy = <span style="">EntityReferenceStrategy</span>.NoLoad;<o:p></o:p></span><span style="font-family: C&#111;nsolas; font-size: 9.5pt;"><span style=""></span></span><br><span style="font-family: C&#111;nsolas; font-size: 9.5pt;"><span style="">b.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: n&#111;ne; font-stretch: normal;">&nbsp; </span></span></span><span style="font-family: C&#111;nsolas; font-size: 9.5pt;">EntityRelations</span><span style="font-family: C&#111;nsolas; font-size: 9.5pt;">.FK_OrderSummary_Customer.Roles.First(er =&gt; er.EntityType ==<br>&nbsp;&nbsp; <span style="color: blue;">typeof</span>(<span style="">Customer</span>)).ReferenceStrategy = <span style="">EntityReferenceStrategy</span>.NoLoad;<o:p></o:p></span><span style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"><span style=""></span></span><br><span style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"><span style=""></span></span></blockquote><span style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"><span style="">2)<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: n&#111;ne; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 'Calibri','sans-serif'; font-size: 11pt;">You can set the EntityManager.DefaultQueryStrategy = QueryStrategy.CacheOnly<o:p></o:p></span>]]>
   </description>
   <pubDate>Fri, 05 Feb 2010 14:26:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1637&amp;PID=6178#6178</guid>
  </item> 
  <item>
   <title>EntityReferenceLoadStrategy : I am evaluating DevForce and do...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1637&amp;PID=6173#6173</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=668" rel="nofollow">bfoster</a><br /><strong>Subject:</strong> 1637<br /><strong>Posted:</strong> 04-Feb-2010 at 11:37am<br /><br /><P>I am evaluating DevForce and do not like the idea of the "Getter" automatically loading navigation properties.&nbsp; I would like to use EntityReferenceLoadStrategy.DoNotLoad and implement my own explicit lazy loading.&nbsp; However it looks like I would need to change the FetchStrategy to CacheOnly which obviously would not be very usefull.&nbsp; </P><DIV>Would the world exlpode if I set the load strategy directly (via reflection), or must I resort to code gen?</DIV><DIV>&nbsp;</DIV><DIV>Thanks!</DIV>]]>
   </description>
   <pubDate>Thu, 04 Feb 2010 11:37:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1637&amp;PID=6173#6173</guid>
  </item> 
 </channel>
</rss>