dotnet / dotnet/efcore

(Optionally) expose QueryCompilationContext to method/member translators

Open
#31,485 0 comments 2 reactions 0 assignees View on GitHub
area-query
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

Our translators currently aren't passed the query compilation context, and so they lack access to various settings and advanced query compilation features. For example, #31482 added support for escaping wildcard characters for LIKE patterns when the pattern is a parameter; since that requires access to RegisterRuntimeParameter, the translation code had to be moved to the provider's SqlTranslatingExpressionVisitor. Once translators can access the QCC, that code can be moved back to the translator where it belongs.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.