I have ConsoleApplication on .NET Core and also i added my DbContext to dependencies, but howewer i have an error:
Unable to create an object of type \'My
In my case, I had two startup project in my solution, so setting the project that has the connection string as the only startup project fixed the issue