<?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 : Covariance in IEntityQuery&lt;T&gt;?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Covariance in IEntityQuery&lt;T&gt;?</description>
  <pubDate>Sat, 11 Apr 2026 21:53:42 -700</pubDate>
  <lastBuildDate>Tue, 13 Jul 2010 18:47:53 -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=1963</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>Covariance in IEntityQuery&lt;T&gt;? : Great idea. Welooked at this last...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1963&amp;PID=7621#7621</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1963<br /><strong>Posted:</strong> 13-Jul-2010 at 6:47pm<br /><br />Great idea.&nbsp; We&nbsp;looked at this last year and really wanted to do it, but&nbsp;Silverlight&nbsp;does not support covariance/contravariance yet and we did not want to break the consistency of&nbsp;our API.<DIV></DIV><DIV></DIV>]]>
   </description>
   <pubDate>Tue, 13 Jul 2010 18:47:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1963&amp;PID=7621#7621</guid>
  </item> 
  <item>
   <title>Covariance in IEntityQuery&lt;T&gt;? : With the move to .NET4 and it&amp;#039;s...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1963&amp;PID=7614#7614</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=613" rel="nofollow">stephenmcd1</a><br /><strong>Subject:</strong> 1963<br /><strong>Posted:</strong> 13-Jul-2010 at 11:39am<br /><br />With the move to .NET4 and it's covariance/contravariance support, I'm wondering if it would be possible to mark IEntityQuery&lt;T&gt; covariant?&nbsp; It looks like the standard IQueryable&lt;T&gt; and IOrderedQueryable&lt;T&gt; already support covariance.<br><br>One reason I'd really like to see this is for situations like the following:<br><br>public IEntityQuery&lt;MyBaseEntityType&gt; GetASemiDynamicEntityQuery(bool someCriteria)<br>{<br>&nbsp;&nbsp;&nbsp; if(someCriteria)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return myEntityManager.Table1;<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return myEntityManager.Table2;<br>}<br><br>As it stands now, the return type would have to be the non-generic IEntityQuery but then I couldn't perform further type-safe filtering or ordering, etc. on the query.<br><br>Thanks!<br>]]>
   </description>
   <pubDate>Tue, 13 Jul 2010 11:39:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1963&amp;PID=7614#7614</guid>
  </item> 
 </channel>
</rss>