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

Document changing connection/connection string #2075

Open
ajcvickers opened this issue Jan 30, 2020 · 3 comments
Open

Document changing connection/connection string #2075

ajcvickers opened this issue Jan 30, 2020 · 3 comments

Comments

@ajcvickers
Copy link
Member

See dotnet/efcore#6525
dotnet/efcore#8427
dotnet/efcore#8494

@mviegas
Copy link

mviegas commented Aug 5, 2021

@ajcvickers just for a follow-up: any plans on moving forward with this?

@ajcvickers
Copy link
Member Author

@mviegas Yes. But other things are are higher priority right now.

@smitpatel smitpatel modified the milestones: 5.0.0, 6.0.0 Sep 3, 2021
@slubowsky
Copy link

slubowsky commented Nov 17, 2021

Would really appreciate some documentation on how I can use a dbcontext pool in an ASP.NET Web API that needs to make sure correct connection string (we have 2 db users - masked and unmasked using dynamic data masking) is used for each request so connection string needs to be set each time taking user information from httpContext into account

Previous work around used in 5.0 has stopped working correctly in 6.0 (likely due to optimizations reusing existing connections as mentioned here https://devblogs.microsoft.com/dotnet/announcing-entity-framework-core-6-0-preview-4-performance-edition/#pooling-and-recycling-dbcontext-and-beyond) and rather then another work around Id like to see how to do it correctly

See dotnet/efcore#19906 and follow issues referenced by it

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

No branches or pull requests

4 participants