This is a migrated thread and some comments may be shown as answers.

Error in OrderBy

3 Answers 61 Views
Data Access Free Edition
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 2
Michael asked on 16 Feb 2012, 12:48 PM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Thomas
Telerik team
answered on 16 Feb 2012, 02:49 PM
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. 
0
Michael
Top achievements
Rank 2
answered on 16 Feb 2012, 03:07 PM
Should I mark this as answer or wait for you to notify that issue is fixed?
0
Ivailo
Telerik team
answered on 16 Feb 2012, 04:05 PM
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. 
Tags
Data Access Free Edition
Asked by
Michael
Top achievements
Rank 2
Answers by
Thomas
Telerik team
Michael
Top achievements
Rank 2
Ivailo
Telerik team
Share this question
or