Skip to content

Query: Exception when using the "let" keyword and grouping #3676

@AlekseyMartynov

Description

@AlekseyMartynov

Version: 7.0.0-rc1-*

Query:

from p in nwind.Products
let cat = p.CategoryID
group p by cat;
// group p by p.CategoryID; // - also fails when 'let' is present

Message:

Expression of type '...' cannot be used for parameter of type '...' of method '...'

Full sample: https://github.com/AlekseyMartynov/ef7-bugs/tree/group-with-let

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions