Skip to content

Incorrect RCS1077 suggestion to change OrderBy to Order in EF Core queries #1541

@sid-6581

Description

@sid-6581

Product and Version Used: 4.12.6

Steps to Reproduce:

Use OrderBy(x => x) in an EF Core LINQ expression.

Actual Behavior:

Roslynator will suggest changing it to Order(), which isn't currently supported in EF Core as of version 8. Using Order() will cause the code to fail at runtime when it can't be translated to SQL.

Expected Behavior:

OrderBy() used on anything that implements IQueryable should not trigger this suggestion.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions