We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
目前有这样的需求,根据用户输入的连接字符串来连接到不同的数据库 我采用下面的方式根据用户输入的connStr重新设置连接
connStr
DBServerProvider.DbContext.Database.SetConnectionString(connStr)
但是访问到的数据还是旧的连接,请问大佬,如何让切换立即生效?
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
目前有这样的需求,根据用户输入的连接字符串来连接到不同的数据库
我采用下面的方式根据用户输入的
connStr
重新设置连接但是访问到的数据还是旧的连接,请问大佬,如何让切换立即生效?
The text was updated successfully, but these errors were encountered: