AWS sql connection error

using dotNet Core

I am using the below connection string within the appsettings.json file (AWS sql server)

“ConnectionStrings”: {“EmployeeDBConnection”: “server=XXXX.XXXXXXXX.us-east-1.rds.amazonaws.com;database=MYDB;Trusted_Connection=true”

}

or

“ConnectionStrings”: {EmployeeDBConnection": “server=XXXX.XXXXXXXX.us-east-1.rds.amazonaws.com;database=MYDB;id=myid;password=password123”

within my startup.cs file i have

services.AddDbContext(
options => options.UseSqlServer(_config.GetConnectionString(“EmployeeDBConnection”)));

but i still get a NULL parameter error. Please advise

.NET Foundation Website | Blog | Projects | Code of Conduct