We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 583397a commit 2b2996eCopy full SHA for 2b2996e
src/System.Linq.Dynamic.Core/Parser/ExpressionParser.cs
@@ -998,8 +998,7 @@ private Expression ParseIdentifier()
998
{
999
var keywordOrFunctionAllowed =
1000
!_usedForOrderBy ||
1001
- (_usedForOrderBy && _keywordsHelper.IsItOrRootOrParent(keywordOrType)) ||
1002
- (_usedForOrderBy && !_parsingConfig.RestrictOrderByToPropertyOrField);
+ (_usedForOrderBy && (_keywordsHelper.IsItOrRootOrParent(keywordOrType) || !_parsingConfig.RestrictOrderByToPropertyOrField));
1003
if (!keywordOrFunctionAllowed)
1004
1005
throw ParseError(Res.UnknownPropertyOrField, _textParser.CurrentToken.Text, TypeHelper.GetTypeName(_it?.Type));
0 commit comments