<?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 : How to get EntityCollection with out having Relations</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : How to get EntityCollection with out having Relations</description>
  <pubDate>Thu, 11 Jun 2026 00:00:51 -700</pubDate>
  <lastBuildDate>Wed, 13 Aug 2008 09:22:04 -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=910</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>How to get EntityCollection with out having Relations : Viral,  I&amp;#039;m still not sure...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=910&amp;PID=3296#3296</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 910<br /><strong>Posted:</strong> 13-Aug-2008 at 9:22am<br /><br />Viral,<DIV>&nbsp;</DIV><DIV>I'm still not sure I understand why you say that fetching data from Correlation causes an automatic fetch from Partner due to their relationship.&nbsp; Fetching related data is a function of the query, so it may be something you can turn off it you think DevForce is doing it unnecessarily.&nbsp; Can you post your LINQ / EntityQuery too?</DIV>]]>
   </description>
   <pubDate>Wed, 13 Aug 2008 09:22:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=910&amp;PID=3296#3296</guid>
  </item> 
  <item>
   <title>How to get EntityCollection with out having Relations : Hello Kim,  Thank you for your...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=910&amp;PID=3295#3295</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=328" rel="nofollow">viralvasaiwala</a><br /><strong>Subject:</strong> 910<br /><strong>Posted:</strong> 13-Aug-2008 at 5:19am<br /><br /><DIV>Hello Kim,</DIV><DIV>&nbsp;</DIV><DIV>Thank you for your prompt reply.</DIV><DIV>&nbsp;</DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Scenario is that we are going to fetch data from “Correlation” Entity, which has the schema as given. When we are going to fetch data from correlation, it will get data from Partner Entity also as it has a relation with partner.</P><DIV></DIV><P>=========Entity Schema of Correlation =================</P><DIV></DIV><FONT color=#0000ff size=2><P>CREATE</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>TABLE</FONT><FONT size=2> &#091;dbo&#093;</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>&#091;Correlation&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>&#091;CorrelationId&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NOT</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;DataXml&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff00ff size=2>max</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Messages&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT color=#ff00ff size=2>max</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;NewestMessageDate&#093; &#091;datetime&#093; </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;LastChanged&#093; &#091;datetime&#093; </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;DoCorrelation&#093; &#091;bit&#093; </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;InternalObject&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;InternalObject_Type&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Partner&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;CreatedAt&#093; &#091;datetime&#093; </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT color=#0000ff size=2>CONSTRAINT</FONT><FONT size=2> &#091;PK__Correlation__10CB707D&#093; </FONT><FONT color=#0000ff size=2>PRIMARY</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>KEY</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>CLUSTERED</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>&#091;CorrelationId&#093; </FONT><FONT color=#0000ff size=2>ASC) </FONT><FONT color=#0000ff size=2>WITH</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>IGNORE_DUP_KEY </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>OFF</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>ON</FONT><FONT size=2> &#091;PRIMARY&#093;</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>ON</FONT><FONT size=2> &#091;PRIMARY&#093;</P></FONT><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p>====================================================================================</o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p></o:p>&nbsp;</P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN-US; mso-fareast-: EN-US; mso-bidi-: AR-SA">Schema of partner is given below.&nbsp; If partner has any relation with any another entity, then it will get data of that entity. That will give us the time out errors in most of the cases.</SPAN></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN-US; mso-fareast-: EN-US; mso-bidi-: AR-SA">========&nbsp;Entity Schema of Partner======================</SPAN></o:p></P><o:p><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN-US; mso-fareast-: EN-US; mso-bidi-: AR-SA"><FONT color=#0000ff size=2><P>CREATE</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>TABLE</FONT><FONT size=2> &#091;dbo&#093;</FONT><FONT color=#808080 size=2>.</FONT><FONT size=2>&#091;Partner&#093;</FONT><FONT color=#808080 size=2>(</P></FONT><FONT size=2><P>&#091;PartnerId&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NOT</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;ObjectType&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Name&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_Address_Street1&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_Address_Street2&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_Address_City&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_Address_State&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_Address_PostalCode&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_Address_Country&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_BillingAddress_Street1&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_BillingAddress_Street2&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_BillingAddress_City&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_BillingAddress_State&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_BillingAddress_PostalCode&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_BillingAddress_Country&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_Phone&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_PhoneWork&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_PhoneMobile&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_PhoneFax&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_Email&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_NewEmail&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_ContactNotes&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;EncryptionKey&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;PublicKey&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;TaxIdNumber&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;PaymentInfo_Method&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>16</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;PaymentInfo_AccountNumber&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;PaymentInfo_Institution&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;OfacStatus&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>6</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;ShortName&#093; &#091;nvarchar&#093;</FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>200</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>COLLATE</FONT><FONT size=2> SQL_Latin1_General_CP1_CI_AS </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_NewEmailDate&#093; &#091;datetime&#093; </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;CorrelationStartDate&#093; &#091;datetime&#093; </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_Address_DateChanged&#093; &#091;datetime&#093; </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;Contact_BillingAddress_DateChanged&#093; &#091;datetime&#093; </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT size=2>&#091;InvoiceStartDate&#093; &#091;datetime&#093; </FONT><FONT color=#808080 size=2>NULL,</FONT><FONT color=#0000ff size=2>PRIMARY</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>KEY</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>CLUSTERED</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>&#091;PartnerId&#093; </FONT><FONT color=#0000ff size=2>ASC </FONT><FONT color=#808080 size=2>)</FONT><FONT color=#0000ff size=2>WITH</FONT><FONT size=2> </FONT><FONT color=#808080 size=2>(</FONT><FONT size=2>IGNORE_DUP_KEY </FONT><FONT color=#808080 size=2>=</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>OFF</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>ON</FONT><FONT size=2> &#091;PRIMARY&#093;</FONT><FONT color=#808080 size=2>)</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>ON</FONT><FONT size=2> &#091;PRIMARY&#093;=====================================================================================</P><DIV>Looking forward for your reply.</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>Viral Vasaiwala</DIV></FONT></SPAN></o:p></SPAN></SPAN>]]>
   </description>
   <pubDate>Wed, 13 Aug 2008 05:19:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=910&amp;PID=3295#3295</guid>
  </item> 
  <item>
   <title>How to get EntityCollection with out having Relations : Without knowing both your Entity...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=910&amp;PID=3290#3290</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 910<br /><strong>Posted:</strong> 12-Aug-2008 at 10:01am<br /><br />Without knowing both your Entity definition and the underlying table schema, and the actual resolved eSQL query, I really can't help diagnose why you're getting these errors.&nbsp; If you'd like help with this you can send a small reproducible case to support.<DIV>&nbsp;</DIV><DIV>As for querying an entity without pulling in relations, that's easy to do.&nbsp;&nbsp;Related entities are not fetched except when a)&nbsp;one or more Include statements are part of the query, or b) the&nbsp;query references related entities and must be 'inverted" in order to load cache with all required data.&nbsp; A simple query such as:</DIV><DIV>&nbsp;&nbsp;&nbsp; var query = entityManager.Customers.Where(c=&gt; c.Id ==1)</DIV><DIV>will retrieve only the single requested customer and not any related entities.</DIV><DIV>&nbsp;</DIV><DIV>If you're seeing an EntityQuery which you think is erroneously retrieving related entities too, please post it here.</DIV>]]>
   </description>
   <pubDate>Tue, 12 Aug 2008 10:01:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=910&amp;PID=3290#3290</guid>
  </item> 
  <item>
   <title>How to get EntityCollection with out having Relations :   Hi,  We are facing problems...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=910&amp;PID=3285#3285</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=328" rel="nofollow">viralvasaiwala</a><br /><strong>Subject:</strong> 910<br /><strong>Posted:</strong> 12-Aug-2008 at 12:09am<br /><br /><DIV></DIV><DIV></DIV><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>We are facing problems while getting record for some of the entities and for that we get a message that </DIV><DIV><strong>"It Cannot evaluate expression because a native frame is on top of the call stack."</strong></DIV><DIV><strong></strong>&nbsp;</DIV><DIV><strong></strong>&nbsp;</DIV><DIV><strong><FONT color=#0000ff size=2>Code Snippet</FONT></strong></DIV><DIV><strong><FONT color=#0000ff size=2>================================================================</FONT></strong></DIV><DIV><FONT color=#0000ff size=2><strong>if</strong></FONT><FONT size=2><strong> (objFieldName.Length &gt; 0)</strong></DIV><P><strong>passthruEsqlQuery = </strong></FONT><strong><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#2b91af size=2>PassthruEsqlQuery</FONT><FONT size=2>(typeObject, </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#2b91af size=2>ParameterizedEsql</FONT><FONT size=2>(</FONT><FONT color=#a31515 size=2>"SELECT VALUE resultsql from "</FONT><FONT size=2> + </FONT><FONT color=#2b91af size=2>EnglishGrammarRules</FONT><FONT size=2>.Pluralize(typeObject.Name) + </FONT><FONT color=#a31515 size=2>" AS resultsql WHERE "</FONT></strong><FONT size=2><strong> + objFieldName));</strong></P><P></FONT><FONT color=#0000ff size=2><strong>else</strong></P></FONT><FONT size=2><P><strong>passthruEsqlQuery = </strong></FONT><strong><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#2b91af size=2>PassthruEsqlQuery</FONT><FONT size=2>(typeObject, </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#2b91af size=2>ParameterizedEsql</FONT><FONT size=2>(</FONT><FONT color=#a31515 size=2>"SELECT VALUE resultsql from "</FONT><FONT size=2> + </FONT><FONT color=#2b91af size=2>EnglishGrammarRules</FONT><FONT size=2>.Pluralize(typeObject.Name) + </FONT><FONT color=#a31515 size=2>" AS resultsql WHERE resultsql."</FONT><FONT size=2> + objectName + </FONT><FONT color=#a31515 size=2>"."</FONT><FONT size=2> + objectName + </FONT><FONT color=#a31515 size=2>"Id LIKE '%"</FONT><FONT size=2> + Id + </FONT><FONT color=#a31515 size=2>"%'"</FONT></strong><FONT size=2><strong>));</strong></P><DIV><FONT color=#0000ff><strong>================================================================</strong></FONT></DIV><DIV>&nbsp;</DIV><DIV>After the above query creation we&nbsp;set the&nbsp;timeout for this <FONT color=#2b91af size=2>PassthruEsqlQuery</FONT>...</DIV><DIV><FONT size=2>passthruEsqlQuery.CommandTimeout();&nbsp; // (value for timeout = 2400)</FONT></DIV><DIV>&nbsp;</DIV><DIV>than we execute the query using DataSet in the below two manner (with or without QueryStrategy<FONT size=2>.DataSourceOnly)</FONT></DIV><DIV>&nbsp;</DIV><DIV>1. <FONT size=2>IEnumerable</FONT><FONT size=2> iEnumerableResults = DataSet.ExecuteQuery(passthruEsqlQuery</FONT><FONT size=2>);</FONT></DIV><DIV><FONT size=2>2. IEnumerable</FONT><FONT size=2> iEnumerableResults = DataSet.ExecuteQuery(passthruEsqlQuery, </FONT><FONT size=2></FONT></DIV><DIV><DIV><FONT size=2>QueryStrategy</FONT><FONT size=2>.DataSourceOnly);</FONT></DIV><DIV><FONT color=#0000ff></FONT>&nbsp;</DIV><DIV><FONT color=#0000cc><strong>but in both scenario we gets the error either of </strong></FONT></DIV><DIV><FONT color=#0000cc><strong>"Connection Timeout"&nbsp;</strong></FONT></DIV><DIV><FONT color=#0000cc><strong>OR </strong></FONT></DIV><DIV><FONT color=#0000cc><strong>"Cannot evaluate expression because a native frame is on top of the call stack".</strong></FONT></DIV><DIV><strong><FONT color=#0000cc></FONT></strong>&nbsp;</DIV><DIV><strong><FONT color=#0000cc>because of the above errors,&nbsp;I would like to know is there any alternate way to get the data&nbsp;for particular entity without getting its Relations. If possible than please let us know as soon as possible.</FONT></strong></DIV><DIV><strong><FONT color=#0000cc></FONT></strong>&nbsp;</DIV><DIV><strong><FONT color=#0000cc></FONT></strong>&nbsp;</DIV><DIV><strong><FONT color=#0000cc>Thanks </FONT></strong></DIV><DIV><strong><FONT color=#0000cc>Viral Vasaiwala</FONT></strong></DIV></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 12 Aug 2008 00:09:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=910&amp;PID=3285#3285</guid>
  </item> 
 </channel>
</rss>