3 easy ways to view the SQL created by Entity Framework Core (EF Core).
3 Ways to View and Log the SQL Generated by Entity Framework Core 5

A collection of 3 posts
3 easy ways to view the SQL created by Entity Framework Core (EF Core).
This post shows you how to intercept and view the SQL generated by Entity Framework Core. This method takes advantage of Microsoft's built in logging for .NET core. Only 2 lines of code required.
How to use computed columns in Entity Framework Core code first.