How to view the generated SQL query in EF 6.0How to view the generated SQL query in entity framework 6.0,
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.