Skip to content

Named query filters#36028

Merged
cincuranet merged 18 commits into
dotnet:mainfrom
bittola:bittola/named_query_filters
Jun 9, 2025
Merged

Named query filters#36028
cincuranet merged 18 commits into
dotnet:mainfrom
bittola:bittola/named_query_filters

Conversation

@bittola

@bittola bittola commented May 2, 2025

Copy link
Copy Markdown
Contributor
  • I've read the guidelines for contributing and seen the walkthrough
  • I've posted a comment on an issue with a detailed description of how I am planning to contribute and got approval from a member of the team
  • The code builds and tests pass locally (also verified by our automated build checks)
  • Tests for the changes have been added (for bug fixes / features)
  • Code follows the same patterns and style as existing code in this repo

Closes: #8576
Closes: #10275

@bittola bittola requested a review from a team as a code owner May 2, 2025 02:58
@bittola bittola marked this pull request as draft May 2, 2025 04:47
@bittola bittola marked this pull request as ready for review May 2, 2025 06:10
@bittola bittola changed the title Bittola/named query filters Named query filters May 2, 2025
Comment thread src/EFCore/Metadata/Internal/InternalEntityTypeBuilder.cs Outdated
Comment thread src/EFCore/Metadata/IReadOnlyEntityType.cs Outdated
Comment thread src/EFCore/Metadata/IConventionEntityType.cs Outdated
Comment thread test/EFCore.Tests/ApiConsistencyTest.cs Outdated
@AndriySvyryd

Copy link
Copy Markdown
Member

Also add tests in InternalEntityTypeBuilderTest to verify that named filters set using ConfigurationSource.Convention can be removed or overridden by ConfigurationSource.Explicit or ConfigurationSource.DataAnnotation, but not the other way around.

Comment thread src/EFCore/Query/QueryCompilationContext.cs Outdated
Comment thread src/EFCore/Query/Internal/NavigationExpandingExpressionVisitor.cs Outdated
Comment thread src/EFCore/Metadata/IConventionEntityType.cs Outdated
Comment thread src/EFCore/Metadata/Conventions/QueryFilterRewritingConvention.cs Outdated
Comment thread src/EFCore/Metadata/Internal/RuntimeQueryFilter.cs Outdated
Comment thread src/EFCore/Metadata/Internal/RuntimeQueryFilter.cs Outdated
Comment thread src/EFCore/Metadata/Internal/QueryFilter.cs Outdated
Comment thread src/EFCore/Metadata/IQueryFilter.cs Outdated
Comment thread src/EFCore/Metadata/IReadOnlyEntityType.cs Outdated
Comment thread src/EFCore/Metadata/Internal/EntityType.cs Outdated
Comment thread src/EFCore/Metadata/Internal/QueryFilterCollection.cs Outdated
@AndriySvyryd AndriySvyryd assigned AndriySvyryd and unassigned maumar May 19, 2025
Comment thread src/EFCore/Metadata/IReadOnlyEntityType.cs Outdated
Comment thread src/EFCore/Query/Internal/NavigationExpandingExpressionVisitor.cs Outdated
Comment thread src/EFCore/Metadata/RuntimeEntityType.cs Outdated
Comment thread src/EFCore/Metadata/Internal/EntityType.cs Outdated
Comment thread src/EFCore/Query/Internal/NavigationExpandingExpressionVisitor.cs Outdated
Comment thread src/EFCore/Metadata/Internal/RuntimeQueryFilterCollection.cs Outdated
@AndriySvyryd AndriySvyryd requested a review from cincuranet May 21, 2025 00:22
Comment thread src/EFCore/Query/Internal/NavigationExpandingExpressionVisitor.cs Outdated
Comment thread src/EFCore/Query/Internal/NavigationExpandingExpressionVisitor.cs
Comment thread src/EFCore/Query/Internal/NavigationExpandingExpressionVisitor.cs Outdated
Comment thread src/EFCore/Query/Internal/QueryFiltersCacheKey.cs Outdated
Comment thread src/EFCore/Query/Internal/NavigationExpandingExpressionVisitor.cs Outdated
Comment thread test/EFCore.Specification.Tests/Query/AdHocQueryFiltersQueryTestBase.cs Outdated
Comment thread test/EFCore.Specification.Tests/Query/AdHocQueryFiltersQueryTestBase.cs Outdated
Comment thread test/EFCore.Specification.Tests/Query/AdHocQueryFiltersQueryTestBase.cs Outdated
Comment thread test/EFCore.Specification.Tests/Query/AdHocQueryFiltersQueryTestBase.cs Outdated
Comment thread test/EFCore.Specification.Tests/Query/AdHocQueryFiltersQueryTestBase.cs Outdated
@cincuranet cincuranet self-assigned this Jun 4, 2025
@cincuranet cincuranet merged commit ab1b36e into dotnet:main Jun 9, 2025
7 checks passed
@cincuranet

Copy link
Copy Markdown
Contributor

Thanks.

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.

Support multiple HasQueryFilter calls on same entity type Named query filters

4 participants