Skip to content

OrderBy containing "null" throws error: #927

Description

@tbeltram

This code worked perfectly in Version 1.4.6

query.OrderBy("x => x.DateDelivered == null ? 1 : 2")

After updating to 1.6.3 we get this error:
'No property or field 'null' exists in type '(Type)''

The problem seems to be, the parser cannot understand, that null is not a field of the entity but a constant expression.

Is this a bug?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions