You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
1.6.0 No property or field 'null' exists in type #888
For this value; ProductCode == null ASC, ProductCode ASC
System.Linq.Dynamic.Core.Exceptions.ParseException
HResult=0x80131500
Message=No property or field 'null' exists in type 'Product'
Source=System.Linq.Dynamic.Core
StackTrace:
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseIdentifier()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParsePrimaryStart()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParsePrimary()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseUnary()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseArithmetic()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseAdditive()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseShiftOperator()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseComparisonOperator()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseLogicalAndOrOperator()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseIn()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseAndOperator()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseOrOperator()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseLambdaOperator()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseNullCoalescingOperator()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseConditionalOperator()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseOrdering(Boolean forceThenBy)
at System.Linq.Dynamic.Core.DynamicQueryableExtensions.InternalOrderBy(IQueryable source, ParsingConfig config, String ordering, Object comparer, Object[] args)
at System.Linq.Dynamic.Core.DynamicQueryableExtensions.OrderBy(IQueryable source, ParsingConfig config, String ordering, Object[] args)
at System.Linq.Dynamic.Core.DynamicQueryableExtensions.OrderBy[TSource](IQueryable`1 source, ParsingConfig config, String ordering, Object[] args)
at System.Linq.Dynamic.Core.DynamicQueryableExtensions.OrderBy[TSource](IQueryable`1 source, String ordering, Object[] args)
at OPG.Web.Shared.Controllers.BaseController`1.ProcessOrderBy[TEntity,TViewModel](IQueryable`1& queryable, List`1 orderByCollection, ValueTuple`2[] defaultOrderBy) in C:\Repos\dotnet-api\Web.Shared\Controllers\BaseController.cs:line 1045
Activity
sommmen commentedon Jan 29, 2025
Hm - i just ran into this but im no longer sure the new version is the cause. I'm pretty sure this used to work
Also;
Adding parenthesis does not seem to work.
(ProductCode == null) ASC, ProductCode ASCStefH commentedon Jan 29, 2025
This is probably because the
ProductCode == nullis an expression, and not just a simple property or field.To enable this, see https://github.com/zzzprojects/System.Linq.Dynamic.Core?tab=readme-ov-file#change-2
sommmen commentedon Jan 30, 2025
Works like a charm, missed it in the release notes. Thanks!