<?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 : Issue with One-to-One RelationShips</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Issue with One-to-One RelationShips</description>
  <pubDate>Tue, 28 Apr 2026 20:44:38 -700</pubDate>
  <lastBuildDate>Wed, 09 Dec 2009 12:49:23 -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=1560</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>Issue with One-to-One RelationShips : Great, thanks for closing the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5920#5920</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> 1560<br /><strong>Posted:</strong> 09-Dec-2009 at 12:49pm<br /><br />Great, thanks for closing the loop, Nitin, and happy you're back in business!]]>
   </description>
   <pubDate>Wed, 09 Dec 2009 12:49:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5920#5920</guid>
  </item> 
  <item>
   <title>Issue with One-to-One RelationShips : Greg       I figured out...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5914#5914</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=632" rel="nofollow">ngoel</a><br /><strong>Subject:</strong> 1560<br /><strong>Posted:</strong> 08-Dec-2009 at 8:12pm<br /><br />Greg<DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV>I figured out what was the issue. Its working fine now. It was Custom Code in one of the GetInterceptor. </DIV><DIV>&nbsp;</DIV><DIV></DIV>Thanks<DIV>Nitin</DIV>]]>
   </description>
   <pubDate>Tue, 08 Dec 2009 20:12:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5914#5914</guid>
  </item> 
  <item>
   <title>Issue with One-to-One RelationShips : Nitin:Why don&amp;#039;t you grab...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5876#5876</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> 1560<br /><strong>Posted:</strong> 28-Nov-2009 at 11:00am<br /><br />Nitin:<br><br>Why don't you grab the AddingDeleting solution from the Learning Resources at<br><br>&nbsp;&nbsp;&nbsp; LearningResources\040_BusObjPersistence\AddingDeleting\Samples\100COR\CodeCS<br><br>add the InternationalOrder to the model like I did (open Entity Data Model in the designer, choose Update Model from Database, and under Add Tables, check the InternationalOrder table), then add and run the method I included above to see if you get the same results I did. That'll tell us something, and you may see something in that model that's different from yours that will give you a clue. I just haven't seen the behavior you're describing.<br>]]>
   </description>
   <pubDate>Sat, 28 Nov 2009 11:00:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5876#5876</guid>
  </item> 
  <item>
   <title>Issue with One-to-One RelationShips : Greg,  Just to add to my previous...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5869#5869</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=632" rel="nofollow">ngoel</a><br /><strong>Subject:</strong> 1560<br /><strong>Posted:</strong> 25-Nov-2009 at 4:24pm<br /><br />Greg,<DIV>&nbsp;</DIV><DIV>Just to add to my previous reply, the problem is same for many to 1 relationship. The problem seems to be when there is just one related entity attached and not a collection.</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV>]]>
   </description>
   <pubDate>Wed, 25 Nov 2009 16:24:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5869#5869</guid>
  </item> 
  <item>
   <title>Issue with One-to-One RelationShips : Greg, This is just an example....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5868#5868</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=632" rel="nofollow">ngoel</a><br /><strong>Subject:</strong> 1560<br /><strong>Posted:</strong> 25-Nov-2009 at 4:22pm<br /><br /><P>Greg,</P><DIV>This is just an example. I created this relationship because&nbsp;Orders, Customer Products are easy to understand. The Actual Entities are different. I have tried it with different entities and the problem is the same.</DIV><DIV>&nbsp;</DIV><DIV>Is it working fine at your end?</DIV><DIV>&nbsp;</DIV><DIV>Nitin</DIV>]]>
   </description>
   <pubDate>Wed, 25 Nov 2009 16:22:38 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5868#5868</guid>
  </item> 
  <item>
   <title>Issue with One-to-One RelationShips : Why is the relationship 1-to-1...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5867#5867</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> 1560<br /><strong>Posted:</strong> 25-Nov-2009 at 3:46pm<br /><br />Why is the relationship 1-to-1 between OrderDetail and Product? I would expect it to be many-to-1.&nbsp; Otherwise any Product, once ordered, can't be ordered again.<br><br>There must be something funny going on in how the relationship between those two is modeled.<br>]]>
   </description>
   <pubDate>Wed, 25 Nov 2009 15:46:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5867#5867</guid>
  </item> 
  <item>
   <title>Issue with One-to-One RelationShips : Its a simple int property. There...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5863#5863</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=632" rel="nofollow">ngoel</a><br /><strong>Subject:</strong> 1560<br /><strong>Posted:</strong> 25-Nov-2009 at 12:38pm<br /><br />Its a simple int property. There are no calcuations involved. <DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I have tried this with different entity and even looked at the SQL profiler. The first query(with the include) brings back all the values for the item column from the database, but still it is making trip to the database and gets the related Product information when I try to get the values for item column.</DIV>]]>
   </description>
   <pubDate>Wed, 25 Nov 2009 12:38:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5863#5863</guid>
  </item> 
  <item>
   <title>Issue with One-to-One RelationShips : &amp;#034;items&amp;#034; is a simple...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5861#5861</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> 1560<br /><strong>Posted:</strong> 25-Nov-2009 at 10:33am<br /><br />"items" is a simple int property of OrderDetail? Or is it a computed property?<br><br>If a computed property, what is the calculation?<br>]]>
   </description>
   <pubDate>Wed, 25 Nov 2009 10:33:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5861#5861</guid>
  </item> 
  <item>
   <title>Issue with One-to-One RelationShips : Thanks Greg.  Here is my cod...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5855#5855</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=632" rel="nofollow">ngoel</a><br /><strong>Subject:</strong> 1560<br /><strong>Posted:</strong> 23-Nov-2009 at 7:23pm<br /><br />Thanks Greg.<DIV>&nbsp;</DIV><DIV>Here is my code:</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#2b91af size=2><FONT color=#2b91af size=2>IEntityQuery</FONT></FONT><FONT size=2>&lt;</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Order</FONT></FONT><FONT size=2>&gt; query= em.<FONT color=#2b91af>OrderSet</FONT>.Where(o=&gt;o.OrderId==</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>1</FONT></FONT><FONT size=2>);</FONT></DIV><DIV><FONT color=#2b91af size=2><FONT color=#2b91af size=2>IEnumerable</FONT></FONT><FONT size=2>&lt;</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Order</FONT></FONT><FONT size=2>&gt; results= query.Include(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"OrderDetail"</FONT></FONT><FONT size=2>).Execute();</FONT></DIV><DIV><FONT size=2>System.Diagnostics.</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Debug</FONT></FONT><FONT size=2>.Print(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Before: "</FONT></FONT><FONT size=2> + em.<FONT color=#2b91af>OrderSet</FONT>.With(</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>QueryStrategy</FONT></FONT><FONT size=2>.CacheOnly).Count());</DIV><DIV>System.Diagnostics.</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Debug</FONT></FONT><FONT size=2>.Print(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Before: "</FONT></FONT><FONT size=2> + em.<FONT color=#2b91af>OrderDetailSet</FONT>.With(</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>QueryStrategy</FONT></FONT><FONT size=2>.CacheOnly).Count());</FONT></DIV><DIV><FONT size=2>System.Diagnostics.</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Debug</FONT></FONT><FONT size=2>.Print(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Before: "</FONT></FONT><FONT size=2> + em.<FONT color=#2b91af>ProductSet</FONT>.With(</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>QueryStrategy</FONT></FONT><FONT size=2>.CacheOnly).Count());</FONT></DIV><DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2>foreach</FONT></FONT><FONT size=2> (</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Order&nbsp;o</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>in</FONT></FONT><FONT size=2> results){</DIV><DIV></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>&nbsp;&nbsp; if</FONT></FONT><FONT size=2>(o.OrderDetail.Count &gt; 0){</DIV><DIV></FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int n </FONT></FONT><FONT size=2>= o.OrderDetail&#091;0&#093;.items;</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp; }<BR>}</FONT></DIV><DIV><FONT size=2>System.Diagnostics.<FONT color=#2b91af size=2><FONT color=#2b91af size=2>Debug</FONT></FONT><FONT size=2>.Print(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"After: "</FONT></FONT><FONT size=2> + em.<FONT color=#2b91af>OrderSet</FONT>.With(</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>QueryStrategy</FONT></FONT><FONT size=2>.CacheOnly).Count());</DIV><DIV>System.Diagnostics.</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Debug</FONT></FONT><FONT size=2>.Print(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"After: "</FONT></FONT><FONT size=2> + em.<FONT color=#2b91af>OrderDetailSet</FONT>.With(</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>QueryStrategy</FONT></FONT><FONT size=2>.CacheOnly).Count());</FONT></DIV><DIV><FONT size=2>System.Diagnostics.</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Debug</FONT></FONT><FONT size=2>.Print(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"After: "</FONT></FONT><FONT size=2> + em.<FONT color=#2b91af>ProductSet</FONT>.With(</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>QueryStrategy</FONT></FONT><FONT size=2>.CacheOnly).Count());</DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>The first lot of Debug statement printed:</DIV><DIV>Before: 1</DIV><DIV>Before: 1</DIV><DIV>Before: 0</DIV><DIV>&nbsp;</DIV><DIV>The second lot of Debug statement printed:</DIV><DIV><DIV>After: 1</DIV><DIV>After: 1</DIV><DIV>After: 1</DIV></DIV><DIV>&nbsp;</DIV><DIV>Even though the items I am trying to get is in the OrderDetail table, it went to the server and downloaded the related Product as well. I am not sure what I am doing wrong here. Did I miss something while setting up the relations?</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>Nitin</FONT></FONT></DIV>]]>
   </description>
   <pubDate>Mon, 23 Nov 2009 19:23:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5855#5855</guid>
  </item> 
  <item>
   <title>Issue with One-to-One RelationShips : ngoel:I&amp;#039;m not able to reproduce...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5854#5854</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> 1560<br /><strong>Posted:</strong> 23-Nov-2009 at 3:02pm<br /><br />ngoel:<br><br>I'm not able to reproduce what you're seeing. To one of our standard sample solutions (an AddingDeleting console app), I added the InternationalOrder type from NorthwindIB to the Entity Data Model. InternationalOrder is related 1-1 to Order.<br><br>I then run this method<br><br>&nbsp;&nbsp;&nbsp; private void DoIt() {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var query = _mgr.OrderDetails<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Where(od =&gt; od.Quantity &gt; 10)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Include("Order")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ToList();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DisplayCacheContents();<br><br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; private void DisplayCacheContents() {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.WriteLine("OrderDetails: {0}",_mgr.OrderDetails.With(QueryStrategy.CacheOnly).Count());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.WriteLine("Orders: {0}", _mgr.Orders.With(QueryStrategy.CacheOnly).Count());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.WriteLine("InternationalOrders: {0}", _mgr.InternationalOrders.With(QueryStrategy.CacheOnly).Count());<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PromptToContinue();<br>&nbsp;&nbsp;&nbsp; }<br><br>The WriteLine() calls report these as the cache contents:<br><br>OrderDetails: 1547<br>Orders: 718<br>InternationalOrders: 0<br><br><br>]]>
   </description>
   <pubDate>Mon, 23 Nov 2009 15:02:40 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5854#5854</guid>
  </item> 
  <item>
   <title>Issue with One-to-One RelationShips : Thanks Greg  This is exactly...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5850#5850</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=632" rel="nofollow">ngoel</a><br /><strong>Subject:</strong> 1560<br /><strong>Posted:</strong> 22-Nov-2009 at 3:57pm<br /><br /><DIV>Thanks Greg</DIV><DIV>&nbsp;</DIV><DIV>This is exactly what I thought it should do. I think what is happening is when there is a one to one relationship, it tries to get the details. e.g. each OrderDetails is linked to one Product (i.e there is a One to One Relationship). My include statement is </DIV><DIV>_em.Orders.Include("OrderDetails"), </DIV><DIV>&nbsp;</DIV><DIV>but when I am trying to get information for OrderDetails it goes to the server and gets the Product associated with it ( even though, the information I am trying to get has nothing to do with the product).</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>However, if the relationship is one to many, it does not retrieve the information.</DIV><DIV>&nbsp;</DIV><DIV>e.g. if we do _em.Orders.Include("Customer") and then try to get the Customer Information, it does not go and grap all the phone Numbers of the Customer as there a a One to many relationsip between customer and Phone Number tables.</DIV><DIV>&nbsp;</DIV><DIV>I hope I made myself clear.</DIV><DIV>&nbsp;</DIV><DIV>Cheers<BR>Nitin</DIV>]]>
   </description>
   <pubDate>Sun, 22 Nov 2009 15:57:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5850#5850</guid>
  </item> 
  <item>
   <title>Issue with One-to-One RelationShips : In case you&amp;#039;re not clear...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5834#5834</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> 1560<br /><strong>Posted:</strong> 19-Nov-2009 at 8:39am<br /><br />In case you're not clear on this: in the code statement in my previous post I was simply illustrating that you can continue nesting your Includes to any desired depth. How far you go is up to you.<br><br>Suppose you issue this query:<br><br>_em.Orders.Include("OrderDetails")<br><br>No Products will be retrieved. However, if you immediately attempt to use the retrieved OrderDetails in some context that needs their associated Product (e.g., in a grid where one of the columns is a ComboBox displaying the related Product), then DevForce will of course go retrieve the required Product.<br>]]>
   </description>
   <pubDate>Thu, 19 Nov 2009 08:39:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5834#5834</guid>
  </item> 
  <item>
   <title>Issue with One-to-One RelationShips : Thanks Grieg,  Is there a way...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5829#5829</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=632" rel="nofollow">ngoel</a><br /><strong>Subject:</strong> 1560<br /><strong>Posted:</strong> 18-Nov-2009 at 12:58pm<br /><br />Thanks Grieg,<DIV>&nbsp;</DIV><DIV>Is there a way to, not do an Include on Product or Product Supplier , and still save the server trips...I don't need any information from Product or Product Supplier tables...OrderDetails have enough information for me......I have included the OrderDetails table and only trying to get information from the OrderDetails table....I am not sure why it tries to get information from the Product table when I have not asked for one. Shouldn't it only try to get the Product information when I try to get details from the Product table? I am writing dynamic queries and this is just one case. There are many cases like this.</DIV><DIV>&nbsp;</DIV><DIV>Is there any other way prevent it from not going to server to get the Product and Product Suppier information?</DIV>]]>
   </description>
   <pubDate>Wed, 18 Nov 2009 12:58:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5829#5829</guid>
  </item> 
  <item>
   <title>Issue with One-to-One RelationShips : _em.Orders.Include(&amp;#034;Order...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5828#5828</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> 1560<br /><strong>Posted:</strong> 18-Nov-2009 at 10:47am<br /><br />_em.Orders.Include("OrderDetails").Include("OrderDetails.Product").Include("OrderDetails.Product.Supplier")<br><br><br>]]>
   </description>
   <pubDate>Wed, 18 Nov 2009 10:47:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5828#5828</guid>
  </item> 
  <item>
   <title>Issue with One-to-One RelationShips : Hi,  I am having issue with...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5821#5821</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=632" rel="nofollow">ngoel</a><br /><strong>Subject:</strong> 1560<br /><strong>Posted:</strong> 17-Nov-2009 at 8:09pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I am having issue with using Include function with ideablade. </DIV><DIV>&nbsp;</DIV><DIV>I have got an Orders Entity which is linked to OrderDetails. There is a one to many relation between the two. The OrderDetail table is linked to the Product table on a one to one relationship on Product ID.</DIV><DIV>&nbsp;</DIV><DIV>When retrieving the Orders, I am retrieving the OrderDetails using the Include function. It brings back all the Order and OrderDetails information, but when I try to retrive any value from the OrderDetails, it fires another trip to the server trying to get the related Product which I don't want. Is there any way to stop this?</DIV><DIV>&nbsp;</DIV><DIV>If not, is there a way where any other way to retrieve information related to Order and OrderDetails in a single server trip?</DIV>]]>
   </description>
   <pubDate>Tue, 17 Nov 2009 20:09:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1560&amp;PID=5821#5821</guid>
  </item> 
 </channel>
</rss>