Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Created Issue: OrderBy Clauses Shade Programmed Ones [444]

$
0
0
The scenario is to return IQueryable as follows:

_dataContext
.Cards
.OrderByDescending(kc => kc.SendDate)
.Where(x => x.SendDate > someDate);

Framework inserts additional orderby clauses on the primary key to ensure a stable sort. The resulting query is as follows:

_dataContext
.Cards
.OrderByDescending(kc => kc.SendDate)
.Where(x => x.SendDate > someDate)
.Userqueries
.OrderBy(kc => kc.Id)

So, the first ordering is shaded.

Related discussion: http://aspnetwebstack.codeplex.com/discussions/391082 .

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>