Using the guide here, I\'m trying to log the SQL generated by my MVC web application.
The guide uses the line:
context.Database.Log = Console.Write;
You can print it in Debug window:
dbContext.Database.Log = message => Debug.Write(message);