← Tutti gli articoli
How to see the SQL statements that your Entity Framework application executes.
27 agosto 2012 · EDF · Article · 394 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());