Skip to content

Log Entity Framework generated SQL

Posted on:March 23, 2022

Log generated SQL from Entity Framework.

context.Database.Log = s => System.Diagnostics.Debug.WriteLine(s);