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 support for EnableConstantParameterization #215

Merged
merged 5 commits into from
Jun 12, 2024

Conversation

alexmo16
Copy link
Contributor

@alexmo16 alexmo16 commented Jun 9, 2024

adds the possibility of configuring the EnableConstantParameterization of ODataQuerySettings object. It is useful to be able to configure that property, since it can affect performance drastically.

Related discussion: #212
Related documentation: https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnet.odata.query.odataquerysettings.enableconstantparameterization?view=odata-aspnetcore-7.0


void Test(IQueryable<CoreBuilding> queryable)
{
string sqlQuery = queryable.ToQueryString();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure if it's the best way of testing my changes. Suggestions are welcome.

@BlaiseD BlaiseD merged commit 1a9cd97 into AutoMapper:master Jun 12, 2024
3 checks passed
@BlaiseD
Copy link
Member

BlaiseD commented Jun 12, 2024

Thanks

@amorelIM
Copy link

@BlaiseD When should we expect a new release including these changes? Thank you.

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

Successfully merging this pull request may close these issues.

3 participants