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

Accept null connection string in UseMySql #1734

Open
victor-borges opened this issue Dec 12, 2022 · 1 comment
Open

Accept null connection string in UseMySql #1734

victor-borges opened this issue Dec 12, 2022 · 1 comment

Comments

@victor-borges
Copy link

victor-borges commented Dec 12, 2022

As part of EF Core 7 there are migrations tooling improvements, including allowing null for UseSqlServer. It is not clear to me if that change is only during design time or if it was relaxed in every case, but that would be a nice feature for the MySQL provider for getting rid of "dummy" connection strings that are there just to instanciate the DbContext in design time (something I have to do every time when developing a multi-tenant app that doesn't have a default connection, might also just be my lack of knowledge of alternative methods).

image

@victor-borges victor-borges changed the title Feature request: Accept null connection string in UseMySql Accept null connection string in UseMySql Dec 12, 2022
@mguinness
Copy link
Collaborator

Appears related to the upstream issue dotnet/efcore#26869.

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

No branches or pull requests

2 participants