Entity Framework Running SQL Log ((DbContext)context).Database.Log = x => System.Diagnostics.Debug.WriteLine(x); 01/04/2018 1