Do you need to quickly examine and possibly tune the SQL queries generated by Entity Framework?
There are numerous ways, such us logging, or attaching Visual Studio debugger, but it usually means you have to rerun you application each time you make a change.
There's a quicker way. I have prepared a EF Core .NET Fiddle snippet with sample DbContext that outputs the generated SQL to the console.
Feel free to modify the entities and queries: