← Tutti gli articoli
How to see the SQL statements that your Entity Framework application executes.
27 August 2012 ·
EDF · Article ·
387 visite
How to see the SQL statements that your Entity Framework application executes.
- var contents = from c in context.Contents
- where c.Title == "Asp.net"
- select c;
- ObjectQuery objectQuery = (ObjectQuery)contents;
- Console.WriteLine(objectQuery.ToTraceString());