How can I debug Entity Framework? Can I see what queries he is trying to execute on the SQL server for troubleshooting?
Check out the MVC Mini Profiler: http://code.google.com/p/mvc-mini-profiler/
It is very lightweight, does not invade your application and is easily removed if required. In addition, qaru uses it.
You can send a query to ObjectQuery and then use ObjectQuery.ToTraceString() -, which returns the full SQL for your query. Alternatively, of course, you can simply use SQL Profiler in your database to find out which SQL is executed.
ObjectQuery
ObjectQuery.ToTraceString()
You can use Profiler Framework Profiler. http://efprof.com/ .
You can use the Monitoring tool on the server to directly view the queues.For MSSQL Server see: http://blog.pengoworks.com/index.cfm/2008/1/3/View-recently-run-queries-in-MSSQL-2005
Source: https://habr.com/ru/post/898487/More articles:Invalid WWW file name :: Mechanize submission - perlWhy are these different string formats on TimeSpan on XAML? - wpfFileExists () returns false even if the file exists - windows-7Use an external button for rich: fileUpload - javawrong og: description - urlCodeigniter: Paypal IP address and csrf_protection - codeigniterIIS url rewrite - css and js overwrite incorrectly - javascriptMissing Android proguard code throws a NullPointerException when it really shouldn't be - javaHow do you lay out your binary file format? - c ++The root certificate is automatically deleted from the "Trusted Root Certification Authorities", - x509certificateAll Articles