Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show Entity Framework generated SQL for Insert / Update

Is it possible, from code, to see the generated SQL for an insert/update ?
I need it by code because I am using a database that does not permit to show SQL queries.

like image 433
eka808 Avatar asked Jul 15 '26 03:07

eka808


1 Answers

Get a demo of the entity framework profiler

Entity Framework Profiler http://efprof.com/

Maybe this might be of help.. http://blog.cincura.net/227674-how-to-show-sql-command-created-by-entity-framework/

This question may well help you as well... Best way to show the SQL trace of a LINQ query to Entity Framework 3.5

like image 185
Aim Kai Avatar answered Jul 21 '26 07:07

Aim Kai