Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add complex expression support for DbFunction parameters #20093

Open
AndriySvyryd opened this issue Feb 27, 2020 · 3 comments
Open

Add complex expression support for DbFunction parameters #20093

AndriySvyryd opened this issue Feb 27, 2020 · 3 comments

Comments

@AndriySvyryd
Copy link
Member

This would be especially useful in cases where the parameters don't come from a query root and therefore cannot be rewritten using let/Select like

from r in context.GetCustomerOrderCountByYear(() => context.AddValues(-2, 3))
orderby r.Count descending
select r
@pmiddleton
Copy link
Contributor

@AndriySvyryd Can you show an example of what you are proposing? I am not quite understanding what you are looking for.

@AndriySvyryd
Copy link
Member Author

@pmiddleton It's what you had in the last PR, but we decided to remove it for now since it doesn't work with expressions that contain navigations or shadow property references.

@pmiddleton
Copy link
Contributor

Ok got it. That makes sense now.

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

No branches or pull requests

3 participants