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

[release/5.0] SqlServer RevEng: Stop scaffolding included index columns #23083

Merged
merged 1 commit into from
Oct 24, 2020

Conversation

bricelam
Copy link
Contributor

@bricelam bricelam commented Oct 23, 2020

See #22150

Description

In 5.0 we started to reverse-engineer "included columns" for indexes. However, we have a bug where if the column names are different from the mapped property names, then the result is incorrect and fails at runtime. Fixing this bug requires significant work and is not something we can do in a patch. Therefore, we want to pull this feature.

Customer Impact

We've had several people run into this on the previews/RCs, and the reports keep coming. On reflection, we think it's likely that many customers will have column names that don't match, and so will hit this. The workaround is to edit the generated code to fix it. But this is manual and could involve editing hundreds of lines of code. This would then need to be done again if the database is later re-reverse-engineered, which is common for some development flows. ("Database First").

On the flip side, the feature itself is not very important. Therefore, we want to pull the feature from 5.0. This will not break any existing applications since this is a design-time reverse-engineering feature. It will be a take-back of a small feature that has been in the previews and RCs.

How found

Multiple customer reports.

Test coverage

We are missing test coverage in this area.

Regression?

Yes, we believe many customers will hit this with 5.0 when reverse-engineering databases that worked in 3.1.

Risk

Very low. It's a very simple feature, and removal is very unlikely to have any knock-on effects. It is also a design-time feature, so there is no chance of breaking existing applications at runtime.

More people are hitting dotnet#22150 than we anticipated. Give that this configuration isn't needed when mapping to an existing column, we've decided to stop scaffolding them entirely until we can fix that particular issue.
@bricelam bricelam requested a review from a team October 23, 2020 19:13
@ErikEJ
Copy link
Contributor

ErikEJ commented Oct 23, 2020

Good decision...

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

Successfully merging this pull request may close these issues.

SqlServer RevEng: Stop scaffolding included index columns
4 participants