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

Allow DbConnection or connection string to be changed on existing DbContext #19376

Merged
merged 1 commit into from
Dec 23, 2019

Conversation

ajcvickers
Copy link
Member

Fixes #6525 (Allow connections string to be set/changed)
Fixes #8494 (Allow connection to be set/changed)
Fixes #8427 (Parameterless overloads of UseSqlServer, UseSqlite)

@ajcvickers
Copy link
Member Author

@roji @lauxjpn See parameterless overloads of UseXxx methods.

@ajcvickers ajcvickers requested review from roji, smitpatel, AndriySvyryd, maumar and bricelam and removed request for roji December 20, 2019 23:30
@AndriySvyryd
Copy link
Member

Some of the scenarios where this is useful are dynamic load balancing and failover and the obvious place to change the connection string for those is in an interceptor. Could you add command, connection and transaction interceptor tests that change the connection string?

@ajcvickers
Copy link
Member Author

@AndriySvyryd Updated, including additional tests.

…ontext

Fixes #6525 (Allow connections string to be set/changed)
Fixes #8494 (Allow connection to be set/changed)
Fixes #8427 (Parameterless overloads of UseSqlServer, UseSqlite)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants