<?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 : EntityQuery.AddOrderBy</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : EntityQuery.AddOrderBy</description>
  <pubDate>Wed, 10 Jun 2026 08:41:58 -700</pubDate>
  <lastBuildDate>Thu, 05 Aug 2010 02:47:26 -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=2047</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>EntityQuery.AddOrderBy : Dear reader,  using IdeaBlade...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2047&amp;PID=7994#7994</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=886" rel="nofollow">hojo</a><br /><strong>Subject:</strong> 2047<br /><strong>Posted:</strong> 05-Aug-2010 at 2:47am<br /><br />Dear reader,<DIV>&nbsp;</DIV><DIV>using IdeaBlade DevForce Classic v3.7.1.0 we have encountered the following problem:</DIV><DIV>&nbsp;</DIV><DIV>when using AddOrderBy() with an&nbsp;EntityQuery myquery using a nullable EntityColumn, there is a problem when using this query with pm.GetEntities&lt;T&gt;(myquery), _if_ the database actually contains null-values (for this column).</DIV><DIV>&#091;I might add that myquery also uses "TOP", though I don't know whether that makes any difference.&#093;</DIV><DIV>&nbsp;</DIV><DIV>In this case the following error message appears:</DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: DE-AT; mso-fareast-: DE-AT; mso-bidi-: AR-SA"><?: prefix = v ns = "urn:schemas-microsoft-com:vml" /><v:shape id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"><a href="http://www.ideablade.com/forum/uploads/886/EntityQuery_AddOrderBy.zip" target="_blank">uploads/886/EntityQuery_AddOrderBy.zip</A></v:shape></SPAN></DIV><DIV><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: DE-AT; mso-fareast-: DE-AT; mso-bidi-: AR-SA"><v:shape stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"></v:shape></SPAN>&nbsp;</DIV><DIV><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: DE-AT; mso-fareast-: DE-AT; mso-bidi-: AR-SA"><v:shape stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600">If the table does not contain null-values (for this column) the query and ordering works fine.</v:shape></SPAN></DIV><DIV><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: DE-AT; mso-fareast-: DE-AT; mso-bidi-: AR-SA"><v:shape stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"></v:shape></SPAN>&nbsp;</DIV><DIV><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: DE-AT; mso-fareast-: DE-AT; mso-bidi-: AR-SA"><v:shape stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600">If reading the entities into a list (without ordering) and using ApplySort afterwards on the list (for this column), ordering works fine.</v:shape></SPAN></DIV><DIV><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: DE-AT; mso-fareast-: DE-AT; mso-bidi-: AR-SA"><v:shape stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"></v:shape></SPAN>&nbsp;</DIV><DIV><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: DE-AT; mso-fareast-: DE-AT; mso-bidi-: AR-SA"><v:shape stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600">&#091;Unfortunately this seems to be no solution to us: using TOP the result set is just different, depending on whether sorting is used on SQL-level.&#093;</v:shape></SPAN></DIV><DIV><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: DE-AT; mso-fareast-: DE-AT; mso-bidi-: AR-SA"><v:shape stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"></v:shape></SPAN><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: DE-AT; mso-fareast-: DE-AT; mso-bidi-: AR-SA"><v:shape stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"></v:shape></SPAN>&nbsp;</DIV><DIV><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: DE-AT; mso-fareast-: DE-AT; mso-bidi-: AR-SA"><v:shape stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600">Anyway, I would expect ordering to work already on SQL-level, whether the column is nullable or not, and whether there are null-values or not.</v:shape></SPAN></DIV><DIV><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: DE-AT; mso-fareast-: DE-AT; mso-bidi-: AR-SA"><v:shape stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"></v:shape></SPAN>&nbsp;</DIV><DIV><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: DE-AT; mso-fareast-: DE-AT; mso-bidi-: AR-SA"><v:shape stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600">Can you reproduce this behaviour? Is there a solution to this?</v:shape></SPAN></DIV><DIV><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: DE-AT; mso-fareast-: DE-AT; mso-bidi-: AR-SA"><v:shape stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"></v:shape></SPAN>&nbsp;</DIV><DIV><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: DE-AT; mso-fareast-: DE-AT; mso-bidi-: AR-SA"><v:shape stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600">Thanks for your reply</v:shape></SPAN></DIV><DIV><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: DE-AT; mso-fareast-: DE-AT; mso-bidi-: AR-SA"><v:shape stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600">Jörg</v:shape></SPAN></DIV><DIV><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: DE-AT; mso-fareast-: DE-AT; mso-bidi-: AR-SA"><v:shape stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"><?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shape></SPAN>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 05 Aug 2010 02:47:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2047&amp;PID=7994#7994</guid>
  </item> 
 </channel>
</rss>