How to view the generated SQL query in EF 6.0
How to view the generated SQL query in entity framework 6.0,https://stackoverflow.com/questions/1412863/how-do-i-view-the-sql-generated-by-the-entity-framework
I tried these solution unfortunately it's not working.
I want see the list of queries which is executed during the method.
Solution which I tried but output window is not showing the sql queries:
using (MyDatabaseEntities context = new MyDatabaseEntities())
{
context.Database.Log = s => System.Diagnostics.Debug.WriteLine(s);
// query the database using EF here.
}