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

Query: Combine queryable method processing expression visitors #19885

Merged
merged 1 commit into from
Feb 12, 2020

Conversation

smitpatel
Copy link
Contributor

Introduces QueryableMethodNormalizingExpressionVisitor which

  • Extract query metadata methods
  • Convert from enumerable to queryable
  • Convert List.Contains to queryable Contains
  • Flatten GroupJoin-SelectMany

Nav expansion now calls this method on query filter/ defining query

Resolves #19708

Part of #18923

Introduces QueryableMethodNormalizingExpressionVisitor which
- Extract query metadata methods
- Convert from enumerable to queryable
- Convert List.Contains to queryable Contains
- Flatten GroupJoin-SelectMany

Nav expansion now calls this method on query filter/ defining query

Resolves #19708

Part of #18923
query = new InvocationExpressionRemovingExpressionVisitor().Visit(query);

query = NormalizeQueryableMethodCall(query);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this separated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That method is being used from nav expansion.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, still doesn't explain the blank lines around it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Iteration 1. I will remove all blanks lines when full clean up of this visitor is done, promise!

@smitpatel smitpatel merged commit 812e241 into master Feb 12, 2020
@smitpatel smitpatel deleted the somecleanup branch February 12, 2020 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants