I'm trying to connect my project to my local bank.
andmyconnectstringisbelow.
<addname="DefaultConnection" connectionString="Data Source=LAPTOP-QEGG9P00;Initial Catalog=Portal_Recarga_Virtual;Integrated Security=False;Encrypt=False;TrustServerCertificate=True;ApplicationIntent=ReadWrite;MultiSubnetFailover=False" providerName="System.Data.SqlClient" />
However, when doing enable-migrations, VS returns the error below:
"An error occurred accessing the database. This is usually the case where the database is correct and the appropriate string is correct and the appropriate DbContext constructor is being used to specify it or find it in the application's config file. See link for information on DbContext and connections. See the inner exception for details of the failure. "
detail and that the sql server service is active.
Can you help me?