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

Fix #4969: add ability to rename the connection string key. #4972

Closed
wants to merge 1 commit into from

Conversation

zyhfish
Copy link
Contributor

@zyhfish zyhfish commented Jan 9, 2025

No description provided.

@sbwalker
Copy link
Member

sbwalker commented Jan 13, 2025

@zyhfish I will review this PR further. #4969 is a very rare scenario (ie. encountered once in 6 years) so I am not sure if it makes sense to enhance the framework to support it. The main problem in #4969 is that the framework acts in an unexpected way and provides no feedback... therefore the user has no idea that the connection string name is causing a conflict. #4979 resolves this issue by preventing the application from starting up (which mitigates the stream of exceptions) and provides a useful message in the application Log (/Content/Log) to clearly identify the issue.

@sbwalker
Copy link
Member

My preference is to not include support for obscure scenarios as they tend to complicate application logic and become long term baggage for the framework. The probability of anyone needing to change the name of the "DefaultConnection" is extremely low... and now that #4979 provides more detailed feedback, I do not think it is worthwhile to include this enhancement. So I am going to close this PR.

@sbwalker sbwalker closed this Jan 13, 2025
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.

2 participants