I am trying to write my connection string in my appsettings.json file and bring it into my startup file but I keep getting a Value cannot be null. Parameter name: connection
this is was the message that appeared me
Value cannot be null. Parameter name: connectionString
I fix it changed in the startup these lines
services.AddDbContext(options =>
options.UseSqlServer(
Configuration["Data:BookStoreContext:ConnectionString"]));
To
services.AddDbContext(options =>
options.UseSqlServer(
Configuration.GetConnectionString("BookStoreContext")));