I created a simple .NET 7.0 app with SQL Server and if I use the default "localdb" or even after I change it to a "network server", I get the error below:
The certificate chain was issued by an authority that is not trusted.
My connection string is:
mysqlserver.com;Initial Catalog=db_database;User Id=db_admin;Password=pass123;Persist Security Info=True;Encrypt=true;TrustServerCertificate=yes
What am I doing wrong?
PS: With the above connection string I can scaffold the database.