-
Notifications
You must be signed in to change notification settings - Fork 545
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
DbMigrator should avoid connecting to master and should use existing connection if possible #522
Comments
Is there any work around for this? Everything is marked private or internal etc. I hoped to just override update in a certain part of my code and avoid call to EnsureDatabaseExists but without taking huge amount of EF code this doesn't seem possible |
Hi,
(We use a separated executable for database migration with its own app config, so this workaround doesn't affect the web app.) Do you think this can help? |
Additional note: this is problematic when an existing connection has an access token associated. We cant then clone the connection. |
This prevents migrations having to attempt to create connections from connection strings. Fixes #522
This prevents migrations having to attempt to create connections from connection strings. Fixes #522
The current implementation causes issues, e.g. when using ADD authentication with Azure SQL DB.
From @ajcvickers's email:
Also, there is apparently a code path there that may leave a connection open.
The text was updated successfully, but these errors were encountered: