<?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 : Query minimize</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Query minimize</description>
  <pubDate>Sun, 19 May 2013 12:37:08 -700</pubDate>
  <lastBuildDate>Thu, 12 May 2011 12:51:05 -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=2671</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>Query minimize : DynamicTypeConverter did the trick...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2671&amp;PID=10664#10664</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1089" rel="nofollow">Darek</a><br /><strong>Subject:</strong> 2671<br /><strong>Posted:</strong> 12-May-2011 at 12:51pm<br /><br /><strong>DynamicTypeConverter </strong>did the trick ... Thanks, Silvio!]]>
   </description>
   <pubDate>Thu, 12 May 2011 12:51:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2671&amp;PID=10664#10664</guid>
  </item> 
  <item>
   <title>Query minimize : Hi Darek,  Smi-mark sugestion...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2671&amp;PID=10663#10663</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> 2671<br /><strong>Posted:</strong> 12-May-2011 at 11:19am<br /><br />Hi Darek,<DIV>&nbsp;</DIV><DIV>Smi-mark sugestion will definitely solve your issue regarding the "unable to locate type error".</DIV><DIV>&nbsp;</DIV><DIV>However, if you only intend to display the results in a grid, you won't really need a new type. You could instead use an anonymous projection.</DIV><DIV>Note that anonymous types cannot be bound to the Silverlight DataGrids. Being that said, DevForce supports binding to anonymous types by using the DynamicTypeConverter (IdeaBlade.Core.DynamicTypeConverter):</DIV><DIV>&nbsp;</DIV><DIV><BR><SPAN style="COLOR: blue">var</SPAN> myCollectionViewSource = (System.Windows.Data.<SPAN style="COLOR: #2b91af">CollectionViewSource</SPAN>)<SPAN style="COLOR: blue">this</SPAN>.Resources&#091;<SPAN style="COLOR: #a31515">"gridViewSource"</SPAN>&#093;;</DIV><DIV><SPAN style="COLOR: blue">var</SPAN> qry = mgr.FACT_TRANSACTION</DIV><DIV>&nbsp; .Select(s1=&gt;<strong><SPAN style="COLOR: blue">new</SPAN> {A=s1.DIM_POLICY.POLICY_ID,B=s1.DIM_LOCAL_PRODUCT.LOCAL_PRODUCT_NAME}</strong>)</DIV><DIV>&nbsp; .Take(100);</DIV><DIV>&nbsp;</DIV><DIV><SPAN style="COLOR: blue">var</SPAN> op = qry.ExecuteAsync();</DIV><DIV>&nbsp;</DIV><DIV>op.Completed += (s, args) =&gt; {</DIV><DIV>&nbsp; <SPAN style="COLOR: blue">var</SPAN> t1 = args.Results.ToList();</DIV><DIV>&nbsp;&nbsp;myCollectionViewSource.Source = <strong>DynamicTypeConverter.Convert(args.Results)</strong>;<BR>};</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Silvio.</DIV>]]>
   </description>
   <pubDate>Thu, 12 May 2011 11:19:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2671&amp;PID=10663#10663</guid>
  </item> 
  <item>
   <title>Query minimize : sounds like the type &amp;#039;G&amp;#034;...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2671&amp;PID=10656#10656</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 2671<br /><strong>Posted:</strong> 12-May-2011 at 9:44am<br /><br />sounds like the type 'G" is not on both the server and the client.<br><br>This may help:<br>http://drc.ideablade.com/xwiki/bin/view/Documentation/knowntypes<br>]]>
   </description>
   <pubDate>Thu, 12 May 2011 09:44:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2671&amp;PID=10656#10656</guid>
  </item> 
  <item>
   <title>Query minimize : When I&amp;#039;ve tried to use LIND...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2671&amp;PID=10651#10651</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1089" rel="nofollow">Darek</a><br /><strong>Subject:</strong> 2671<br /><strong>Posted:</strong> 11-May-2011 at 11:50pm<br /><br />When I've tried to use LIND to limit the number of columns returned, I've received this error:<br><br>Unable to locate type: System.Linq.IQueryable`1&#091;&#091;TelerikDDS2.G, TelerikDDS2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null&#093;&#093;, System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e. Check that the assembly holding this type is available in the bin/exe folder. Also check that both your assemblies and DevForce assemblies have the expected version number on both client and server.<br><br>I've used this example:<br><pre style="font-family:C&#111;nsolas;font-size:13;color:black;:white;"><span style="color:blue;">var</span>&nbsp;myCollectionViewSource&nbsp;=&nbsp;(System.Windows.Data.<span style="color:#2b91af;">CollectionViewSource</span>)<span style="color:blue;">this</span>.Resources&#091;<span style="color:#a31515;">"gridViewSource"</span>&#093;;<span style="color:blue;">var</span>&nbsp;qry&nbsp;=&nbsp;mgr.FACT_TRANSACTION<br>   .Select(s1=&gt;<span style="color:blue;">new</span>&nbsp;<span style="color:#2b91af;">G</span>{A=s1.DIM_POLICY.POLICY_ID,B=s1.DIM_LOCAL_PRODUCT.LOCAL_PRODUCT_NAME})<br>   .Take(100);<span style="color:blue;">var</span>&nbsp;op&nbsp;=&nbsp;qry.ExecuteAsync();op.Completed&nbsp;+=&nbsp;(s,&nbsp;args)&nbsp;=&gt;  {     <span style="color:blue;">var</span>&nbsp;t1&nbsp;=&nbsp;args.Results.ToList();&nbsp;    myCollectionViewSource.Source&nbsp;=&nbsp;args.Results;&nbsp; };</pre><br><pre style="font-family:C&#111;nsolas;font-size:13;color:black;:white;"><span style="color:blue;">public</span>&nbsp;<span style="color:blue;">class</span>&nbsp;<span style="color:#2b91af;">G</span>&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;<span style="color:blue;">string</span>&nbsp;A&nbsp;{&nbsp;<span style="color:blue;">get</span>;&nbsp;<span style="color:blue;">set</span>;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;<span style="color:blue;">string</span>&nbsp;B&nbsp;{&nbsp;<span style="color:blue;">get</span>;&nbsp;<span style="color:blue;">set</span>;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp; <br></pre><br>]]>
   </description>
   <pubDate>Wed, 11 May 2011 23:50:54 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2671&amp;PID=10651#10651</guid>
  </item> 
  <item>
   <title>Query minimize : Is there a way to minimize query...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2671&amp;PID=10650#10650</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1089" rel="nofollow">Darek</a><br /><strong>Subject:</strong> 2671<br /><strong>Posted:</strong> 11-May-2011 at 11:42pm<br /><br />Is there a way to minimize query generated by DefForce? I have a simple star schema database with a few facts and several dimensional tables, and I am trying to display only a few columns in a grid, from a query returning about 50 at present. <br>]]>
   </description>
   <pubDate>Wed, 11 May 2011 23:42:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2671&amp;PID=10650#10650</guid>
  </item> 
 </channel>
</rss>