eka808
eka808

Reputation: 2317

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.

Upvotes: 3

Views: 1606

Answers (1)

Aim Kai
Aim Kai

Reputation: 2909

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

Upvotes: 3

Related Questions