I have a .net Core 3.1 Web API solution, using EF Core for the database. When I execute Add-Migration to generate database migrations, the tool runs the startup project. I want to skip some code that executes when the startup project starts (it will not impact the migration generation). Is there a way to tell, in the project code, that it has been launched from the EF tool?