Quick action the error in the IDE and it'll give you the option(s) needed to fix this problem.
Also, I would not recommend doing this. In general connection strings and other "static" configuration should be done as part of app startup in your entry point, not here when configuring the context. This method is designed for making any final configuration changes needed before the context is ready to go. Setting connection strings should be done as part of the app startup because they should be stored outside the code. You should probably move this call into where you're calling AddDbContext
which is where it normally occurs.