Connection strings in .NET 6 Worker service

I am trying to connect to database with connection string which is written in appsetting.json. I try to pass it in UseSqlServer("…") in AddDbContext but it just doesn’t work. When I write it in Context class it works. So, program runs without errors but it doesn’t connect to Db. Does someone know what is wrong… Read More Connection strings in .NET 6 Worker service