LinqToQuerystring icon indicating copy to clipboard operation
LinqToQuerystring copied to clipboard

orderBy not working and orderby gives http 500 error

Open jolySoft opened this issue 12 years ago • 2 comments

if I apply a $orderBy=Name, for example and check EF Profiler this is not being applied to the Sql.

Also if I use it lower case (i.e. $orderby=Name) I get the following error: ExceptionMessage=No method 'get_Item' exists on type xxx.

jolySoft avatar Jun 11 '14 14:06 jolySoft

Without knowing any more information, it sounds like you have set the ForceDynamicProperties flag to true? This should be the only way you would see the get_item error.

If this is still a problem for you, please reopen this issue and if possible provide a small project sample reproducing the error.

beyond-code-github avatar Jul 10 '14 21:07 beyond-code-github

Just a comment here for future reference. I got the same error using $orderby=[Name], but it works with $orderby=Name. ForceDynamicProperties is not set. Based on the examples, I'm not quite sure when to use the square brackets or not.

automada avatar Jan 15 '16 08:01 automada