1

For select it is easy and the solution is here

How do I view the SQL generated by the Entity Framework?

But what about Update, Delete and Insert?

I'm using EF version 4.

Community
  • 1
  • 1
Gudradain
  • 4,653
  • 2
  • 31
  • 40

2 Answers2

0

run SQL server profiler and watch the queries executed, that should do it

0

SQL profiler is an option (and you can luckily use "Application Name" "EntityFramework" (or similar that might not be exactly it) to target EF queries.

In addition to SQL profiler, here's an article from Julie Lerman (one of the leading EF peoples): http://msdn.microsoft.com/en-us/magazine/gg490349.aspx

EDIT:

also here are a few other options in this SO question: How do I view the SQL generated by the Entity Framework?

Community
  • 1
  • 1
Kritner
  • 13,557
  • 10
  • 46
  • 72