EF Core 5.0: Using ToQueryString() method to translate LINQ query to SQL
Entity Framework Core 5.0 comes with SQL-based brother to ToString() method for LINQ-queries. This method is called ToQueryString() and it returns provider-specific SQL without connecting to database server. This blog post shows how ToQueryString() method works.
Read more