<?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 : Complete &quot;Select&quot; Dynamic Query</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Complete &quot;Select&quot; Dynamic Query</description>
  <pubDate>Wed, 13 May 2026 09:56:41 -700</pubDate>
  <lastBuildDate>Thu, 09 Feb 2012 14:59:29 -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=3252</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>Complete &quot;Select&quot; Dynamic Query : Hello silvio,	Maybe you are right...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3252&amp;PID=12640#12640</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1381" rel="nofollow">k_cire0426</a><br /><strong>Subject:</strong> 3252<br /><strong>Posted:</strong> 09-Feb-2012 at 2:59pm<br /><br />Hello silvio,<div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>Maybe you are right that it was a requirement to have a primary key...</div><div><br></div><div>thanks again..</div>]]>
   </description>
   <pubDate>Thu, 09 Feb 2012 14:59:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3252&amp;PID=12640#12640</guid>
  </item> 
  <item>
   <title>Complete &quot;Select&quot; Dynamic Query :    Hi k_cire0426,Regarding...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3252&amp;PID=12636#12636</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> 3252<br /><strong>Posted:</strong> 09-Feb-2012 at 10:51am<br /><br />Hi k_cire0426,<div>&nbsp;</div><div>Regarding your comments:</div><div>&nbsp;</div><div>1. Yes, I needed to have a primary key field as well. This might be a DevExpress requirement/issue, since it's set on their <em>EntityInstantFeedbackSource</em>.</div><div>&nbsp;</div><div>2. I didn't need to fill in the 'alias' optional parameter in our <em>ProjectionSelector</em>. (as in the snippet)</div><div>&nbsp;</div><div>I'm attaching the test solution I tested with: <a href="uploads/892/T11495.zip" target="_blank">uploads/892/T11495.zip</a></div><div>&nbsp;</div><div>Regards,</div><div>&nbsp;&nbsp; Silvio.</div>]]>
   </description>
   <pubDate>Thu, 09 Feb 2012 10:51:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3252&amp;PID=12636#12636</guid>
  </item> 
  <item>
   <title>Complete &quot;Select&quot; Dynamic Query : hello sbelini,	Just an update...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3252&amp;PID=12634#12634</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1381" rel="nofollow">k_cire0426</a><br /><strong>Subject:</strong> 3252<br /><strong>Posted:</strong> 08-Feb-2012 at 9:11pm<br /><br />hello sbelini,<div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>Just an update here. I managed to make it work but have some catch.</div><div><span ="Apple-tab-span" style="white-space:pre">	</span></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>1. The selector should have at least 1 primary/unique key field.</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>2. I have to fill in the "alias" optional parameter of ProjectionSelector.</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>I'm not sure if this bug or not and if it is a bug, is it on your side or DevExpress?</div><div><br></div><div>thanks..</div>]]>
   </description>
   <pubDate>Wed, 08 Feb 2012 21:11:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3252&amp;PID=12634#12634</guid>
  </item> 
  <item>
   <title>Complete &quot;Select&quot; Dynamic Query : Hi sbelini,	Thank you for taking...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3252&amp;PID=12633#12633</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1381" rel="nofollow">k_cire0426</a><br /><strong>Subject:</strong> 3252<br /><strong>Posted:</strong> 08-Feb-2012 at 7:50pm<br /><br />Hi sbelini,<div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>Thank you for taking time looking into this. However, we exactly do the same but the data doesn't display. Can you confirm that the data is coming out on your grid?&nbsp;</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>The weird part is when I didn't use the EntityInstantFeedbackSource and call the Execute method, I can see the data.</div><div><br></div><div>thanks..</div>]]>
   </description>
   <pubDate>Wed, 08 Feb 2012 19:50:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3252&amp;PID=12633#12633</guid>
  </item> 
  <item>
   <title>Complete &quot;Select&quot; Dynamic Query :    Hi k_cire0426,You will need...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3252&amp;PID=12632#12632</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> 3252<br /><strong>Posted:</strong> 08-Feb-2012 at 6:26pm<br /><br /><div>Hi k_cire0426,</div><div>&nbsp;</div><div>You will need to cast your ITypedEntityQuery into an IQueryable:</div><div>&nbsp;</div><div><font color="#2b91af" size="2" face="C&#111;nsolas"><font color="#2b91af" size="2" face="C&#111;nsolas"><font color="#2b91af" size="2" face="C&#111;nsolas">&nbsp; EntityInstantFeedbackSource</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"> efInstantFeedbackSource1 = </font></font><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas">new</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"> </font></font><font color="#2b91af" size="2" face="C&#111;nsolas"><font color="#2b91af" size="2" face="C&#111;nsolas"><font color="#2b91af" size="2" face="C&#111;nsolas">EntityInstantFeedbackSource</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">();</font></font></div><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&nbsp; efInstantFeedbackSource1.KeyExpression = </font></font><font color="#a31515" size="2" face="C&#111;nsolas"><font color="#a31515" size="2" face="C&#111;nsolas"><font color="#a31515" size="2" face="C&#111;nsolas">"LastName"</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">;</font></font></div><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&nbsp; efInstantFeedbackSource1.GetQueryable += efInstantFeedbackSource1_GetQueryable;</font></font></div><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&nbsp; gridControl1.ItemsSource = efInstantFeedbackSource1;</font></font></div><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font>&nbsp;</div><div><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas">void</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"> efInstantFeedbackSource1_GetQueryable(</font></font><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas">object</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"> sender, </font></font><font color="#2b91af" size="2" face="C&#111;nsolas"><font color="#2b91af" size="2" face="C&#111;nsolas"><font color="#2b91af" size="2" face="C&#111;nsolas">GetQueryableEventArgs</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"> e) {</font></font></div><div><font face="C&#111;nsolas"><font size="2">&nbsp; <font color="#2b91af"><font color="#2b91af"><font color="#2b91af">NorthwindIBEntities</font></font></font> mgr = <font color="#0000ff"><font color="#0000ff"><font color="#0000ff">new</font></font></font> <font color="#2b91af"><font color="#2b91af"><font color="#2b91af">NorthwindIBEntities</font></font></font>();</font></font></div><div><font face="C&#111;nsolas"><font size="2">&nbsp; <font color="#2b91af"><font color="#2b91af"><font color="#2b91af">IProjectionSelector</font></font></font> selector = <font color="#0000ff"><font color="#0000ff"><font color="#0000ff">new</font></font></font> <font color="#2b91af"><font color="#2b91af"><font color="#2b91af">ProjectionSelector</font></font></font>(<font color="#a31515"><font color="#a31515"><font color="#a31515">"LastName"</font></font></font>);</font></font></div><div><font face="C&#111;nsolas"><font size="2">&nbsp; selector = selector.Combine(<font color="#a31515"><font color="#a31515"><font color="#a31515">"FirstName"</font></font></font>);</font></font></div><div><font face="C&#111;nsolas"><font size="2">&nbsp; <font color="#0000ff"><font color="#0000ff"><font color="#0000ff">var</font></font></font> rootQuery = <font color="#2b91af"><font color="#2b91af"><font color="#2b91af">EntityQuery</font></font></font>.Create(<font color="#0000ff"><font color="#0000ff"><font color="#0000ff">typeof</font></font></font>(<font color="#2b91af"><font color="#2b91af"><font color="#2b91af">Employee</font></font></font>), mgr);</font></font></div><div><font face="C&#111;nsolas"><font size="2">&nbsp; <font color="#0000ff"><font color="#0000ff"><font color="#0000ff">var</font></font></font> query = rootQuery.Select(selector);</font></font></div><div><font face="C&#111;nsolas"><font size="2">&nbsp; e.QueryableSource = (<font color="#2b91af"><font color="#2b91af"><font color="#2b91af">IQueryable</font></font></font>)query;</font></font></div><div><font face="C&#111;nsolas"><font size="2">}</font></font></div><font face="C&#111;nsolas"></font><div>&nbsp;</div><div>Regards,</div><div>&nbsp;&nbsp; Silvio.</div><span style="font-size:10px"><br /><br />Edited by sbelini - 08-Feb-2012 at 6:53pm</span>]]>
   </description>
   <pubDate>Wed, 08 Feb 2012 18:26:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3252&amp;PID=12632#12632</guid>
  </item> 
  <item>
   <title>Complete &quot;Select&quot; Dynamic Query : hello,   Is it really needed to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3252&amp;PID=12629#12629</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1381" rel="nofollow">k_cire0426</a><br /><strong>Subject:</strong> 3252<br /><strong>Posted:</strong> 07-Feb-2012 at 9:59pm<br /><br />hello,<div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp;Is it really needed to call the Execute method when creating select dynamic query? I like to use the feature on EntityInstantFeedbackSource of DevExpress but I failed to do so. Is there a way to do that?</div><div><br></div><div>thanks...</div>]]>
   </description>
   <pubDate>Tue, 07 Feb 2012 21:59:54 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3252&amp;PID=12629#12629</guid>
  </item> 
 </channel>
</rss>