My appsetting.json
file contains :
"ConnectionStrings": {
"Server=localhost;Database=db;Trusted_Connection=True;encrypt=false;MultipleActiveResultSets=true"
}
After migration to .NET 7 and EF Core 7, new default value for encrypt
is true
.
But, publishing from Visual Studio removes this 'encrypt=false;'
section from connection string and app can't be run until I manually change the connection string.^