Skip to content

[release/10.0] Revert "Fix View Indexes not Scaffolded in Sql Server (#37607)" #37634

Merged
AndriySvyryd merged 1 commit intorelease/10.0from
RevertViews
Feb 5, 2026
Merged

[release/10.0] Revert "Fix View Indexes not Scaffolded in Sql Server (#37607)" #37634
AndriySvyryd merged 1 commit intorelease/10.0from
RevertViews

Conversation

@AndriySvyryd
Copy link
Copy Markdown
Member

This reverts commit 69eaf15 that was merged accidentally.

@AndriySvyryd AndriySvyryd requested a review from a team as a code owner February 5, 2026 16:54
Copilot AI review requested due to automatic review settings February 5, 2026 16:54
@AndriySvyryd AndriySvyryd enabled auto-merge (squash) February 5, 2026 16:54
@AndriySvyryd AndriySvyryd disabled auto-merge February 5, 2026 16:54
@AndriySvyryd AndriySvyryd enabled auto-merge (squash) February 5, 2026 16:54
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reverts commit 69eaf15 which added support for scaffolding indexes on SQL Server views. The revert was necessary because the original commit was merged accidentally into the release/10.0 branch.

Changes:

  • Removed CTE-based query that included views when scaffolding indexes, reverting to table-only index scaffolding
  • Removed the test case that verified view index scaffolding functionality

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/EFCore.SqlServer/Scaffolding/Internal/SqlServerDatabaseModelFactory.cs Reverts the GetIndexes method to query only sys.tables instead of combining tables and views via CTE
test/EFCore.SqlServer.FunctionalTests/Scaffolding/SqlServerDatabaseModelFactoryTest.cs Removes the Create_indexes_on_views test that verified view index scaffolding

@AndriySvyryd AndriySvyryd merged commit d816afe into release/10.0 Feb 5, 2026
12 of 13 checks passed
@AndriySvyryd AndriySvyryd deleted the RevertViews branch February 5, 2026 18:25
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