❔ The ConnectionString property has not been initialized error coming on accessing the sql server

Hi! I am trying to access mysql server from MVC Core application with EF Core .I am running sql server in my local docker container .Also I am on visual studio Mac. When I try to access the server I am getting the ConnectionString property has not been initialized error . The connection string works fine when I connect to azure data studio . The following are the screenshots for the appsettings.json and program.cs respectively . Please let me know if you want to know anymore details.
Screenshot_2023-04-25_at_10.09.23_PM.png
Screenshot_2023-04-25_at_11.13.08_PM.png
Was this page helpful?