Error in OrderBy

4 posts, 1 answers
  1. Michael
    Michael avatar
    29 posts
    Member since:
    Nov 2010

    Posted 16 Feb 2012 Link to this post

    Hi,
    I use PostgreSQL 9.1 + VisualStudio 2010 + OAORM.

    Version of OAORM is : 2011.2.713
    This code work in this version
    private List<Artikal> _getTopArtikals(int count = 10)
            {
                // Order artkals by
                // the artikals with the highest count
                var topArtikal = storeDB.Artikals
                    .OrderByDescending(a => a.OrderDetails.Count())
                    //.ThenByDescending(z => z.Zalihes.Count())
                    .Where(w => w.Webaccessmp ?? false)
                    .Take(count)
                    .ToList();
                // Return articals
                return topArtikal;
            }

    Today I upgrade to 2011.3.1116 and above code don't work any more. The error is : System.InvalidOperationException
    and something about : invalid node in order ....

    Now I revert to previus version and code work again.

    Thanks
  2. Answer
    Thomas
    Admin
    Thomas avatar
    590 posts

    Posted 16 Feb 2012 Link to this post

    Hi,

    Unfortunately this seems to be an issue. We will fix this ASAP. Thanks for reporting this issue with us; I've updated your Telerik Points.

    All the best,
    Thomas
    the Telerik team
    Want to use Telerik OpenAccess with SQL Azure? Download the trial version today. 
  3. DevCraft banner
  4. Michael
    Michael avatar
    29 posts
    Member since:
    Nov 2010

    Posted 16 Feb 2012 Link to this post

    Should I mark this as answer or wait for you to notify that issue is fixed?
  5. Ivailo
    Admin
    Ivailo avatar
    318 posts

    Posted 16 Feb 2012 Link to this post

    Hello Michael,

    I would recommend you to mark both the last post and the future one notifying for the fix as answers, so that in the meantime other people with the same problem can find this thread more easily. 

     

    Regards,
    Ivailo
    the Telerik team
    Want to use Telerik OpenAccess with SQL Azure? Download the trial version today. 
Back to Top