<?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 : Disable lazy loading for custom objects</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Disable lazy loading for custom objects</description>
  <pubDate>Mon, 13 Apr 2026 12:29:24 -700</pubDate>
  <lastBuildDate>Mon, 25 Jul 2011 00:48:14 -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=2791</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>Disable lazy loading for custom objects : Hello Silvio,Sorry for my late...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2791&amp;PID=11279#11279</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1185" rel="nofollow">GeertvanHorrik</a><br /><strong>Subject:</strong> 2791<br /><strong>Posted:</strong> 25-Jul-2011 at 12:48am<br /><br />Hello Silvio,<div><br></div><div>Sorry for my late reply.&nbsp;</div><div><br></div><div>1) thanks</div><div><br></div><div>2) I tried to subtract a date in a query, but this seems to be an EF restriction</div>]]>
   </description>
   <pubDate>Mon, 25 Jul 2011 00:48:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2791&amp;PID=11279#11279</guid>
  </item> 
  <item>
   <title>Disable lazy loading for custom objects :    Hi GeertvanHorrik,1) You...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2791&amp;PID=11091#11091</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> 2791<br /><strong>Posted:</strong> 23-Jun-2011 at 4:59pm<br /><br />Hi GeertvanHorrik,<div>&nbsp;</div><div>1) You can disable lazy loading by changing the LoadStrategy:</div><div>&nbsp;</div><div><font face="Courier New, Courier, mono">Order.PropertyMetadata.Products.ReferenceStrategy = </font></div><div><font face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new EntityReferenceStrategy(EntityReferenceLoadStrategy.Load, MergeStrategy.PreserveChanges);</font></div><div>&nbsp;</div><div>You will find more details about the ReferenceStrategy in the <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/navigati&#111;n-properties-data-retrieval" target="_blank">DevForce Resource Center</a>.</div><div>&nbsp;</div><div>&nbsp;</div><div>2) "<em>It seems impossible to subtract time in LINQ. Is there a workaround for this?</em>"</div><div>&nbsp;</div><div>&nbsp;&nbsp;&nbsp;&nbsp; I'm not sure I understand your question. Can you explain in detail what you are trying to do and what problem you are coming across?</div><div>&nbsp;</div><div>Regards,</div><div>&nbsp;&nbsp; Silvio.</div>]]>
   </description>
   <pubDate>Thu, 23 Jun 2011 16:59:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2791&amp;PID=11091#11091</guid>
  </item> 
  <item>
   <title>Disable lazy loading for custom objects : Hello,I have a custom query where...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2791&amp;PID=11079#11079</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1185" rel="nofollow">GeertvanHorrik</a><br /><strong>Subject:</strong> 2791<br /><strong>Posted:</strong> 23-Jun-2011 at 7:48am<br /><br />Hello,<div><br></div><div>I have a custom query where I want to load a simple structure:</div><div><br></div><div>Products and Orders. I have created POCO's for the objects since the EF model is too heavy for displaying some dashboard information.</div><div><br></div><div>Now I have 2 questions:</div><div><br></div><div>1) How can I disable lazy loading of the 2nd layer? An order contains a list of products, but the products are not loaded (even though it is a custom POCO class). How can I force DevForce to execute the whole linq query for this query only?</div><div><br></div><div>2) It seems impossible to subtract time in LINQ. Is there a workaround for this?</div><div><br></div><div>Thanks in advance!</div>]]>
   </description>
   <pubDate>Thu, 23 Jun 2011 07:48:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2791&amp;PID=11079#11079</guid>
  </item> 
 </channel>
</rss>