-
Notifications
You must be signed in to change notification settings - Fork 2k
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 when PersistSecurityInfo=True is needed #2926
Comments
You need |
@smitpatel thanks. With |
Moved to docs to document when this is needed. (Basically when the application passes a SqlConnection to us, but we then need to connect to the master database. This means we have to clone the connection, and we lose the password.) |
@ajcvickers I saw examples on this page https://docs.microsoft.com/en-us/ef/core/testing/sharing-databases#the-fixture when was writing unit tests. Someone else might step on the rake. |
File a bug
When I pass to
UseSqlServer()
connection string, it connects to the docker db and local db. But when I pass toUseSqlServer()
new Microsoft.Data.SqlClient.SqlConnection(connString)
, it fails to connect to the docker db but connects to the local db. Simple repo https://github.com/umbarov/dotnet-sqlserver-gh-actions with Github Actions.Connects to the docker db and local sql server:
Fails to connect to the docker db, but connects to the local sql server:
Include stack traces
Include provider and version information
EF Core version: 5.0
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 5.0
Operating system: Windows 10 Pro , Version: 20H2, OS build: 19042.630
The text was updated successfully, but these errors were encountered: